skip tidy and fetch repo data from git.uugrn.org
This commit is contained in:
@@ -12,8 +12,8 @@ echo "<h1>$TITLE</h1>"
|
||||
[ -f index.txt ] && cat index.txt
|
||||
|
||||
echo "<p>"
|
||||
echo "<table class=\"photo-table\">"
|
||||
echo "<tr>"
|
||||
echo " <table class=\"photo-table\">"
|
||||
echo " <tr>"
|
||||
|
||||
_count=0
|
||||
find * -maxdepth 0 -mindepth 0 -type f \( -iname "*.jpg" \
|
||||
@@ -28,9 +28,6 @@ do
|
||||
_file_html="${_file%%.*}.html"
|
||||
_file_descr="${_file%%.*}.txt"
|
||||
|
||||
# increase file counter
|
||||
_count=$(( _count + 1))
|
||||
|
||||
if [ ! -f "${_file_thm}" ]
|
||||
then
|
||||
convert -quality 73 \
|
||||
@@ -65,18 +62,28 @@ do
|
||||
echo "<p><a href=index.html>Back to Index</a></p>" >> "${_file_html}"
|
||||
fi
|
||||
|
||||
echo "<td class=\"photo-td\" ><a href=\"/photos/$DIR/${_file_html}\"><img alt=\"Thumbnail Image ${_count}\" class=\"photo-img\" src=\"${_file_thm}\"></a></td>"
|
||||
if [ $(( _count % 3 )) -eq 0 ]
|
||||
then
|
||||
echo "</tr><tr>"
|
||||
fi
|
||||
[ $_count -ne 0 ] \
|
||||
&& [ $(( _count % 3 )) -eq 0 ] \
|
||||
&& echo " </tr><tr>"
|
||||
|
||||
echo " <td class=\"photo-td\" ><a href=\"/photos/$DIR/${_file_html}\"><img alt=\"Thumbnail Image ${_count}\" class=\"photo-img\" src=\"${_file_thm}\"></a></td>"
|
||||
|
||||
# increase file counter
|
||||
_count=$(( _count + 1))
|
||||
|
||||
while [ $(pgrep convert | wc -l) -gt $PROCS ]
|
||||
do sleep 0.3; done
|
||||
|
||||
done
|
||||
echo "</tr>"
|
||||
echo "</table>"
|
||||
|
||||
# fill missing columns
|
||||
for i in $(( _count % 3 ))
|
||||
do
|
||||
echo " <td class=\"photo-td\" > </td>"
|
||||
done
|
||||
|
||||
echo " </tr>"
|
||||
echo " </table>"
|
||||
echo "</p>"
|
||||
|
||||
echo "<p><a href=../index.html>Back to the gallery index</a></p>"
|
||||
|
||||
Reference in New Issue
Block a user