1 | #!/bin/bash |
1 | #!/bin/bash |
2 | |
2 | |
3 | # cfupdate - convert a crossfire maps hierarchy to html |
3 | # cfupdate - convert a crossfire maps hierarchy to html |
4 | # Copyright (C) 2005 Marc Lehmann <gvpe@schmorp.de> |
4 | # Copyright (C) 2005,2007 Marc Lehmann <cfmaps@schmorp.de> |
5 | # |
5 | # |
6 | # CFUPDATE is free software; you can redistribute it and/or modify |
6 | # CFUPDATE is free software; you can redistribute it and/or modify |
7 | # it under the terms of the GNU General Public License as published by |
7 | # it under the terms of the GNU General Public License as published by |
8 | # the Free Software Foundation; either version 2 of the License, or |
8 | # the Free Software Foundation; either version 2 of the License, or |
9 | # (at your option) any later version. |
9 | # (at your option) any later version. |
… | |
… | |
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.111 |
20 | VERSION=1.112 |
21 | |
21 | |
22 | umask 022 |
22 | umask 022 |
23 | |
23 | |
24 | SRC=/root/src/cfmaps |
24 | SRC=/root/src/cfmaps |
25 | PATH="$SRC:$PATH" |
25 | PATH="$SRC:$PATH" |
… | |
… | |
104 | <li><a href="/world/world_122_117.xhtml">Navar</a></li> |
104 | <li><a href="/world/world_122_117.xhtml">Navar</a></li> |
105 | <li><a href="/world/world_116_102.xhtml">Darcap</a></li> |
105 | <li><a href="/world/world_116_102.xhtml">Darcap</a></li> |
106 | <li><a href="/world/world_128_109.xhtml">Wolfsburg</a></li> |
106 | <li><a href="/world/world_128_109.xhtml">Wolfsburg</a></li> |
107 | <li><a href="/world/world_128_101.xhtml">Azumauindo</a></li> |
107 | <li><a href="/world/world_128_101.xhtml">Azumauindo</a></li> |
108 | </ul> |
108 | </ul> |
109 | <p class="footer">created by <a href='http://software.schmorp.de/pkg/crossfire'>cfupdate</a> version $VERSION</p> |
109 | <p class="footer">created by <a href='http://software.schmorp.de/pkg/cfmaps'>cfupdate</a> version $VERSION</p> |
110 | EOF |
110 | EOF |
111 | echo >&7 "</body></html>" |
111 | echo >&7 "</body></html>" |
112 | } 7>index.xhtml~ |
112 | } 7>index.xhtml~ |
113 | |
113 | |
114 | if [ "$DIR" = "world/" -o "$DIR" = "world-overlay/" ]; then |
114 | if [ "$DIR" = "world/" -o "$DIR" = "world-overlay/" ]; then |