This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() | |
{ | |
cat << EOF | |
usage: $0 [options] -i MOVIE-FILE | |
OPTIONS: | |
-h show this message | |
-i input movie file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
html="movie-index.html" | |
echo "<html><head></head><body>">"$html" | |
for movie in *.avi; do | |
echo "--> $movie" | |
name=$(basename "$movie" .avi) | |
make-thumb.sh -i "$movie" | |
echo "<h1><a href=\"http://www.imdb.com/find?q=$name&s=tt\">$name</a> [<a href=\"$movie\">Play</a>]</h1>">>"$html" |