set -f
-VERSION="1.0.2"
+VERSION="1.0.2+arch"
function bpgallery_default_head() {
cat <<END
function bpgallery_default_stylesheet() {
cat <<END
body {
- background: white;
- color: black;
- font-family: sans-serif;
- font-size: 10pt;
+ background: white;
+ color: black;
+ font-family: sans-serif;
+ font-size: 10pt;
}
div.thumbnail {
- float: left;
- padding: 20px;
- border: 0px;
- width: ${WIDTH}px;
- height: ${MAXHEIGHT}px;
+ float: left;
+ padding: 20px;
+ border: 0px;
+ width: ${WIDTH}px;
+ height: ${MAXHEIGHT}px;
}
div.caption {
}
a {
- border: 0px;
+ border: 0px;
}
img {
- border: 0px;
+ border: 0px;
}
END
}
fi
+$ECHOCOMMAND "Starting to generate page"
+
$BPGALLERY_HEAD_FUNCTION > 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)
$BPGALLERY_STYLESHEET_FUNCTION > style.css
+$ECHOCOMMAND "All done"