… | |
… | |
68 | for file in *; do |
68 | for file in *; do |
69 | if [ -h "$file" ]; then |
69 | if [ -h "$file" ]; then |
70 | : # ignore for now |
70 | : # ignore for now |
71 | elif [ -f "$file" ]; then |
71 | elif [ -f "$file" ]; then |
72 | case "$file" in |
72 | case "$file" in |
73 | cfmapidx | *.jpg | *.png | *.html | *.html.gz | *.xhtml | *.xhtml.gz | *.css | *.err | *~ ) |
73 | cfmapidx | *.jpg | *.png | *.xhtml | *.xhtml.gz | *.css | *.err | *~ ) |
74 | ;; |
74 | ;; |
75 | *.map ) |
75 | *.map ) |
76 | echo >&7 "<li><a href='${file%.map}.xhtml'>${file%.map}</a> [map] <img class='mapthumb' src='${file%.map}.jpg' /></li>" |
76 | echo >&7 "<li><a href='${file%.map}.xhtml'>${file%.map}</a> [map] <img class='mapthumb' src='${file%.map}.jpg' /></li>" |
77 | DIR="${dir#/}" |
77 | DIR="${dir#/}" |
78 | echo "$DIR$file" >>$BASE/.cfmap2html |
78 | echo "$DIR$file" >>$BASE/.cfmap2html |
… | |
… | |
134 | done |
134 | done |
135 | |
135 | |
136 | cfarch2html |
136 | cfarch2html |
137 | |
137 | |
138 | rm -f .index.dat~ |
138 | rm -f .index.dat~ |
139 | <.cfmap2html xargs -l100 cfmap2html |
139 | <.cfmap2html xargs -l90 cfmap2html |
140 | <.cfmap2html xargs -l200 cfmapidx -a |
140 | <.cfmap2html xargs -l50 cfmapidx -a |
|
|
141 | cfmapidx -a -r # reorganise |
141 | mv .index.dat~ .index.dat |
142 | mv .index.dat~ .index.dat |
142 | |
143 | |
143 | #rm -f .cfmap2html |
144 | #rm -f .cfmap2html |
144 | |
145 | |
145 | chown -R root.root . |
146 | chown -R root.root . |