--- cfmaps/cfupdate 2005/11/20 03:31:58 1.8 +++ cfmaps/cfupdate 2007/02/14 02:51:42 1.23 @@ -1,7 +1,7 @@ #!/bin/bash # cfupdate - convert a crossfire maps hierarchy to html -# Copyright (C) 2005 Marc Lehmann +# Copyright (C) 2005,2007 Marc Lehmann # # CFUPDATE is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,38 +17,64 @@ # along with gvpe; if not, write to the Free Software # Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -VERSION=1.04 +VERSION=1.112 umask 022 -PATH=/root/src/crossfire:$PATH -BASE=/var/www/cfmaps.schmorp.de -export CROSSFIRE_LIBDIR=$BASE/lib +SRC=/root/src/cfmaps +PATH="$SRC:$PATH" +BASE="/var/www/cfmaps.schmorp.de" +export CROSSFIRE_LIBDIR="$BASE"/lib cd "$BASE" || exit 69 cvs -Q -z3 update -AdP | grep -v ^\\? +#wget -qm --no-check-certificate https://cat2.dynu.ca/cat2/mlab-devel.tar.gz +#if [ cat2.dynu.ca/cat2/mlab-devel.tar.gz -nt cat2.dynu.ca/cat2/mlab-devel.tar.gz~ ]; then +# tar xzpf cat2.dynu.ca/cat2/mlab-devel.tar.gz +# chown -R root.root mlab-devel +# chmod -R u=rwX,go=rX mlab-devel +# ln -f cat2.dynu.ca/cat2/mlab-devel.tar.gz cat2.dynu.ca/cat2/mlab-devel.tar.gz~ +#fi + rm -f .cfmap2html -find . -name CVS -prune -o -type d -printf "%P/\n" | while read dir; do +chmod 644 "$SRC"/*.css +cp "$SRC"/*.css . +chmod 755 "$SRC"/cfmapidx +cp "$SRC"/cfmapidx . + +find . "(" -name CVS -o -path ./a ")" -prune -o -type d -printf "%P/\n" | while read dir; do ( export dir cd "./$dir" || exit 68 { - echo >&7 "" - echo >&7 "" - echo >&7 "" - echo >&7 "Crossfire Maps Directory \"$dir\"

Crossfire Maps Directory \"$dir\"

This Directory