… | |
… | |
15 | # |
15 | # |
16 | # You should have received a copy of the GNU General Public License |
16 | # You should have received a copy of the GNU General Public License |
17 | # along with gvpe; if not, write to the Free Software |
17 | # along with gvpe; if not, write to the Free Software |
18 | # Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
18 | # Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
19 | |
19 | |
20 | VERSION=1.05 |
20 | VERSION=1.06 |
21 | |
21 | |
22 | umask 022 |
22 | umask 022 |
23 | |
23 | |
24 | SRC=/root/src/crossfire |
24 | SRC=/root/src/crossfire |
25 | PATH="$SRC:$PATH" |
25 | PATH="$SRC:$PATH" |
… | |
… | |
30 | |
30 | |
31 | cvs -Q -z3 update -AdP | grep -v ^\\? |
31 | cvs -Q -z3 update -AdP | grep -v ^\\? |
32 | |
32 | |
33 | rm -f .cfmap2html |
33 | rm -f .cfmap2html |
34 | |
34 | |
35 | chmod 644 "$SRC/common.css" |
35 | chmod 644 "$SRC"/*.css |
36 | cp "$SRC/common.css" . |
36 | cp "$SRC"/*.css . |
37 | |
37 | |
38 | find . -name CVS -prune -o -type d -printf "%P/\n" | while read dir; do |
38 | find . -name CVS -prune -o -type d -printf "%P/\n" | while read dir; do |
39 | ( |
39 | ( |
40 | export dir |
40 | export dir |
41 | cd "./$dir" || exit 68 |
41 | cd "./$dir" || exit 68 |
42 | { |
42 | { |
43 | cat >&7 <<-EOF |
43 | cat >&7 <<-EOF |
44 | <?xml version='1.0' encoding='utf-8'?> |
44 | <?xml version='1.0' encoding='utf-8'?> |
45 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
|
46 | <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'> |
45 | <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'> |
47 | <head> |
46 | <head> |
48 | <title>Crossfire Maps Directory "$dir"</title> |
47 | <title>Crossfire Maps Directory "$dir"</title> |
49 | <link rel='stylesheet' type='text/css' media='all' href='/common.css'/> |
48 | <link rel='stylesheet' type='text/css' media='all' href='/common.css'/> |
50 | </head> |
49 | </head> |
… | |
… | |
97 | gzip -7f index.xhtml |
96 | gzip -7f index.xhtml |
98 | ) |
97 | ) |
99 | done |
98 | done |
100 | |
99 | |
101 | <.cfmap2html xargs cfmap2html |
100 | <.cfmap2html xargs cfmap2html |
|
|
101 | <.cfmap2html xargs cfmapidx -a |
|
|
102 | cfmapidx -c |
|
|
103 | mv .index.dat~ .index.dat |
|
|
104 | |
102 | rm -f .cfmap2html |
105 | #rm -f .cfmap2html |
103 | |
106 | |
104 | cfarch2html |
107 | cfarch2html |
105 | cfworldmap |
108 | cfworldmap |
106 | |
109 | |
107 | chown -R root.root . |
110 | chown -R root.root . |