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

Comparing cfmaps/cfupdate (file contents):
Revision 1.37 by root, Thu Oct 22 09:09:58 2009 UTC vs.
Revision 1.38 by root, Fri Oct 23 05:01:02 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>"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines