ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cfmaps/cfupdate
(Generate patch)

Comparing cfmaps/cfupdate (file contents):
Revision 1.2 by root, Fri Nov 18 12:04:12 2005 UTC vs.
Revision 1.3 by root, Fri Nov 18 23:20:26 2005 UTC

6BASE=/var/www/cfmaps.schmorp.de 6BASE=/var/www/cfmaps.schmorp.de
7export CROSSFIRE_LIBDIR=$BASE/lib 7export CROSSFIRE_LIBDIR=$BASE/lib
8 8
9cd "$BASE" || exit 69 9cd "$BASE" || exit 69
10 10
11VERSION=1.0
12
11cvs -Q -z3 update -AdP | grep -v ^\\? 13cvs -Q -z3 update -AdP | grep -v ^\\?
12
13chown -R root.root .
14chmod -R u=rwX,go=rX .
15 14
16rm -f .cfmap2html 15rm -f .cfmap2html
17 16
18find . -name CVS -prune -o -type d -printf "%P/\n" | while read dir; do 17find . -name CVS -prune -o -type d -printf "%P/\n" | while read dir; do
19 ( 18 (
20 export dir 19 export dir
21 cd "./$dir" || exit 68 20 cd "./$dir" || exit 68
22 { 21 {
23 echo "<html><head><title>$dir</title></head><body><ul>" >&7 22 echo "<html><head><title>Crossfire Maps: $dir</title></head><body><h1>Crossfire Maps $dir</h1><h2>This Directory</h2><ul>" >&7
24 echo "<li><a href='..'>&lt;parent&gt;</a></li>" >&7 23 echo "<li><a href='..'>&lt;parent&gt;</a></li>" >&7
25 for file in *; do 24 for file in *; do
26 if [ -f "$file" ]; then 25 if [ -f "$file" ]; then
27 case "$file" in 26 case "$file" in
28 *.pst | *.jpg | *.png | *.html | *.html.gz | *~ ) 27 *.pst | *.jpg | *.png | *.html | *.html.gz | *~ )
45 echo "<li><a href='$file/'>$file/</a> [dir]</li>" >&7 44 echo "<li><a href='$file/'>$file/</a> [dir]</li>" >&7
46 ;; 45 ;;
47 esac 46 esac
48 fi 47 fi
49 done 48 done
49 echo "</ul>" >&7
50 cat <<EOF >&7
51<h2>Bookmarks</h2>
52<ul>
53 <li><a href="/world/worldmap.html">Worldmap</a></li>
54 <li><a href="/world/world_105_115.html">Scorn</a></li>
55 <li><a href="/world/world_102_108.html">Santo Dominion</a></li>
56 <li><a href="/world/world_107_123.html">Brest</a></li>
57 <li><a href="/world/world_109_126.html">Lake Country</a></li>
58 <li><a href="/world/world_122_117.html">Navar</a></li>
59 <li><a href="/world/world_116_102.html">Darcap</a></li>
60 <li><a href="/world/world_128_109.html">Wolfsburg</a></li>
61 <li><a href="/world/world_128_101.html">Azumauindo</a></li>
62</ul>
63<hr />
64<p style='font-size: 8pt;'>created by <b>update</b> version $VERSION</p>
65EOF
50 echo "</ul></body></html>" >&7 66 echo "</body></html>" >&7
51 } 7>index.html 67 } 7>index.html
52 ) 68 )
53done 69done
54 70
55<.cfmap2html xargs cfmap2html 71<.cfmap2html xargs cfmap2html
56rm -f .cfmap2html 72rm -f .cfmap2html
57 73
58cfarch2html 74cfarch2html
75cfworldmap
59 76
77chown -R root.root .
78chmod -R u=rwX,go=rX .
79

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines