1 | #!/opt/bin/perl |
1 | #!/opt/bin/perl |
2 | |
2 | |
3 | # cfmap2idx - inverted index for crossfire maps |
3 | # cfmap2idx - inverted index for crossfire maps |
4 | # Copyright (C) 2005 Marc Lehmann <gvpe@schmorp.de> |
4 | # Copyright (C) 2005,2007 Marc Lehmann <cfmaps@schmorp.de> |
5 | # |
5 | # |
6 | # CFMAPIDX is free software; you can redistribute it and/or modify |
6 | # CFMAPIDX 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 | our $VERSION = '0.911'; |
20 | our $VERSION = '0.912'; |
21 | |
21 | |
22 | use Storable; |
22 | use Storable; |
23 | use DB_File; |
23 | use DB_File; |
24 | |
24 | |
25 | sub escape_html($) { |
25 | sub escape_html($) { |
… | |
… | |
75 | |
75 | |
76 | for (sort @paths) { |
76 | for (sort @paths) { |
77 | print "<li><a href='$_.xhtml'>$_</a></li>"; |
77 | print "<li><a href='$_.xhtml'>$_</a></li>"; |
78 | } |
78 | } |
79 | |
79 | |
80 | print "</ul></p><p class='footer'>created by <a href='http://software.schmorp.de/pkg/crossfire'>cfmapidx</a> version $VERSION</p>", |
80 | print "</ul></p><p class='footer'>created by <a href='http://software.schmorp.de/pkg/cfmaps'>cfmapidx</a> version $VERSION</p>", |
81 | "</body></html>"; |
81 | "</body></html>"; |
82 | } |
82 | } |
83 | |
83 | |
84 | if ($ARGV[0] eq "-a") { |
84 | if ($ARGV[0] eq "-a") { |
85 | shift; |
85 | shift; |