set -f
-VERSION="1.0.1+arch"
+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
}
. $HOME/.bpgallery.rc 2>/dev/null
fi
+if [[ -e $1 && -d $1 && -e $1/.bpgallery.rc ]]; then
+ . $1/.bpgallery.rc 2>/dev/null
+fi
+
if [[ -z ${BPGALLERY_THEME} ]]; then
BPGALLERY_THEME=default
fi
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"