ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cfmaps/cfupdate
(Generate patch)

Comparing cfmaps/cfupdate (file contents):
Revision 1.33 by root, Thu Oct 22 03:02:00 2009 UTC vs.
Revision 1.39 by root, Sun Oct 25 09:00:46 2009 UTC

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 cfmaps; if not, write to the Free Software 17# along with cfmaps; 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
20VERSION=2.022 20VERSION=2.032
21 21
22umask 022 22umask 022
23 23
24SRC=/root/src/cfmaps 24SRC=/root/src/cfmaps
25PATH="$SRC:$PATH" 25PATH="$SRC:$PATH"
73 elif [ -f "$file" ]; then 73 elif [ -f "$file" ]; then
74 case "$file" in 74 case "$file" in
75 cfmapidx | *.jpg | *.png | *.html | *.html.gz | *.xhtml | *.xhtml.gz | *.css | *.err | *~ ) 75 cfmapidx | *.jpg | *.png | *.html | *.html.gz | *.xhtml | *.xhtml.gz | *.css | *.err | *~ )
76 ;; 76 ;;
77 *.map ) 77 *.map )
78 echo >&7 "<li><a href='${file%.map}.xhtml'>${file%.map}</a> [map]</li>" 78 echo >&7 "<li><a href='${file%.map}.xhtml'>${file%.map}</a> [map] <img class='mapthumb' src='${file%.map}.jpg' /></li>"
79 DIR="${dir#/}" 79 DIR="${dir#/}"
80 echo "$DIR$file" >>$BASE/.cfmap2html 80 echo "$DIR$file" >>$BASE/.cfmap2html
81 ;; 81 ;;
82 * ) 82 * )
83 # non-deliantra compatibility 83 # non-deliantra compatibility
84 if [ "$(head -1 "$file")" = "arch map" ]; then 84 if [ "$(head -1 "$file")" = "arch map" ]; then
85 echo >&7 "<li><a href='$file.xhtml'>$file</a> [map]</li>" 85 echo >&7 "<li><a href='$file.xhtml'>$file</a> [map] <img class='mapthumb' src='$file.jpg' /></li>"
86 ln -sf "$file" "$file.map" 86 ln -sf "$file" "$file.map"
87 DIR="${dir#/}" 87 DIR="${dir#/}"
88 echo "$DIR$file.map" >>$BASE/.cfmap2html 88 echo "$DIR$file.map" >>$BASE/.cfmap2html
89 else 89 else
90 echo >&7 "<li><a href='$file'>$file</a> [file]</li>" 90 echo >&7 "<li><a href='$file'>$file</a> [file]</li>"
128 #gzip -7f index.xhtml 128 #gzip -7f index.xhtml
129 ) 129 )
130done 130done
131 131
132for dir in *; do 132for dir in *; do
133 if [ -e "$dir/$dir\_123_107.map" ]; then 133 if [ -e "$dir/${dir}_123_107.map" ]; then
134 echo "worldmap $dir"
135 cfworldmap "$dir" 134 cfworldmap "$dir"
136 fi 135 fi
137done 136done
138 137
139cfarch2html 138cfarch2html
140 139
141rm -f .index.dat~ 140rm -f .index.dat~
142<.cfmap2html xargs -l100 -P16 cfmap2html 141<.cfmap2html xargs -l100 cfmap2html
143<.cfmap2html xargs cfmapidx -a 142<.cfmap2html xargs -l200 cfmapidx -a
144mv .index.dat~ .index.dat 143mv .index.dat~ .index.dat
145 144
146#rm -f .cfmap2html 145#rm -f .cfmap2html
147 146
148chown -R root.root . 147chown -R root.root .

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines