Simplistic output of HTML from the script (just wraps it in a pre block)
git-archimport-id: arch@sommitrealweird.co.uk--2005-desktop/bpgallery--mainline--1.0--patch-18
TITLE - the title of the gallery
WIDTH - the width to make the icons
BPGALLERY_THEME - set the theme to use (described below)
+ OUTPUTHTML - sets the script output to be wrapped in a <pre> block
Example Usage:
TITLE="My Funky Gallery" bpgallery.sh /path/to/image/files
CAPTIONHEIGHT=75
fi
+if [[ -z $OUTPUTHTML ]]; then
+ OUTPUTHTML=0
+fi
+
if declare -F "bpgallery_${BPGALLERY_THEME}_head" > /dev/null ; then
BPGALLERY_HEAD_FUNCTION="bpgallery_${BPGALLERY_THEME}_head"
else
$ECHOCOMMAND "Completed generating thumbs for $totalimages images"
}
+if [[ $OUTPUTHTML != 0 ]]; then
+ $ECHOCOMMAND "<pre>"
+fi
+
if [[ -z $1 ]]; then
$ECHOCOMMAND "No path given"
usage
$BPGALLERY_STYLESHEET_FUNCTION > style.css
$ECHOCOMMAND "All done"
+
+if [[ $OUTPUTHTML != 0 ]]; then
+ $ECHOCOMMAND "</pre>"
+fi