--- cfmaps/cfupdate 2005/12/09 10:57:23 1.16 +++ cfmaps/cfupdate 2009/10/22 03:02:00 1.33 @@ -1,7 +1,7 @@ #!/bin/bash -# cfupdate - convert a crossfire maps hierarchy to html -# Copyright (C) 2005 Marc Lehmann +# cfupdate - convert a deliantra maps hierarchy to html +# Copyright (C) 2005,2007,2008 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 @@ -14,27 +14,30 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with gvpe; if not, write to the Free Software +# along with cfmaps; if not, write to the Free Software # Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -VERSION=1.10 +VERSION=2.022 umask 022 -SRC=/root/src/crossfire +SRC=/root/src/cfmaps PATH="$SRC:$PATH" -BASE="/var/www/cfmaps.schmorp.de" -export CROSSFIRE_LIBDIR="$BASE"/lib +export BASE=${BASE:-/var/www/maps.deliantra.net} +export DELIANTRA_LIBDIR=${DELIANTRA_LIBDIR:-$BASE/lib} cd "$BASE" || exit 69 -wget -qm http://www.eracc.com/mlab/mlab-devel.tar.gz -tar xzpf www.eracc.com/mlab/mlab-devel.tar.gz -chown -R root.root mlab-devel -chmod -R u=rwX,go=rX mlab-devel - 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 chmod 644 "$SRC"/*.css @@ -49,31 +52,40 @@ { cat >&7 <<-EOF - + - Crossfire Maps Directory "$dir" + Deliantra Maps Directory "$dir"

Keyword Search Over All Maps

-

+

-

-

Crossfire Maps Directory "$dir"