… | |
… | |
6 | BASE=/var/www/cfmaps.schmorp.de |
6 | BASE=/var/www/cfmaps.schmorp.de |
7 | export CROSSFIRE_LIBDIR=$BASE/lib |
7 | export CROSSFIRE_LIBDIR=$BASE/lib |
8 | |
8 | |
9 | cd "$BASE" || exit 69 |
9 | cd "$BASE" || exit 69 |
10 | |
10 | |
11 | VERSION=1.0 |
11 | VERSION=1.01 |
12 | |
12 | |
13 | cvs -Q -z3 update -AdP | grep -v ^\\? |
13 | cvs -Q -z3 update -AdP | grep -v ^\\? |
14 | |
14 | |
15 | rm -f .cfmap2html |
15 | rm -f .cfmap2html |
16 | |
16 | |
17 | find . -name CVS -prune -o -type d -printf "%P/\n" | while read dir; do |
17 | find . -name CVS -prune -o -type d -printf "%P/\n" | while read dir; do |
18 | ( |
18 | ( |
19 | export dir |
19 | export dir |
20 | cd "./$dir" || exit 68 |
20 | cd "./$dir" || exit 68 |
21 | { |
21 | { |
22 | echo "<html><head><title>Crossfire Maps: $dir</title></head><body><h1>Crossfire Maps $dir</h1><h2>This Directory</h2><ul>" >&7 |
22 | echo "<html><head><title>Crossfire Maps Directory \"$dir\"</title></head><body><h1>Crossfire Maps Directory \"$dir\"</h1><h2>This Directory</h2><ul>" >&7 |
23 | echo "<li><a href='..'><parent></a></li>" >&7 |
23 | echo "<li><a href='..'><parent></a></li>" >&7 |
24 | for file in *; do |
24 | for file in *; do |
25 | if [ -f "$file" ]; then |
25 | if [ -f "$file" ]; then |
26 | case "$file" in |
26 | case "$file" in |
27 | *.pst | *.jpg | *.png | *.html | *.html.gz | *~ ) |
27 | *.pst | *.jpg | *.png | *.html | *.html.gz | *~ ) |