X-Git-Url: https://git.sommitrealweird.co.uk/bpgallery.git/blobdiff_plain/b583df1133b9c89168679076a859973218dbe34c..b53a01a10ef10a699efae79e7b44d4e8d62eedd5:/bpgallery.sh?ds=sidebyside diff --git a/bpgallery.sh b/bpgallery.sh index c26f826..6315821 100755 --- a/bpgallery.sh +++ b/bpgallery.sh @@ -19,7 +19,7 @@ set -f -VERSION="1.0.2" +VERSION="1.0.2+arch" function bpgallery_default_head() { cat < index.html $BPGALLERY_DESCRIPTION_FUNCTION >> index.html +$ECHOCOMMAND "Adding Captions" + $FINDCOMMAND . $FINDIMAGESOPTIONS | $XARGSCOMMAND -0 --replace $ECHOCOMMAND {} |$SORTCOMMAND -g | while read filename; do filename=${filename#./}; if [ -r captions.txt ]; then caption=$($GREPCOMMAND -E "^$filename " captions.txt); caption=${caption#* }; else caption=""; fi; filename=$(bpgallery_escape_url "$filename"); $BPGALLERY_THUMBSLINE_FUNCTION; done >> index.html $BPGALLERY_TAIL_FUNCTION >> index.html +$ECHOCOMMAND "Finished generating the page" +$ECHOCOMMAND "Generating stylesheet" cd icons MAXHEIGHT=$($FINDCOMMAND . $FINDIMAGESOPTIONS | $XARGSCOMMAND -0 $IDENTIFYCOMMAND -format "%h\n" | $GREPCOMMAND -v "^$" | $SORTCOMMAND -g -r | $HEADCOMMAND -n 1) @@ -353,3 +359,4 @@ MAXHEIGHT=$((MAXHEIGHT+$CAPTIONHEIGHT)) $BPGALLERY_STYLESHEET_FUNCTION > style.css +$ECHOCOMMAND "All done"