--- scripts/pgallery/src/pgallery.sh 2012/08/28 10:44:41 1.5 +++ scripts/pgallery/src/pgallery.sh 2012/08/29 14:15:50 1.16 @@ -5,7 +5,7 @@ # can do whatever you want with this stuff. If we meet some day, and you think # this stuff is worth it, you can buy me a beer in return Aron Schlesinger # -# $Paefchen: scripts/pgallery/src/pgallery.sh,v 1.4 2012/08/28 08:43:05 as Exp $ +# $Paefchen: scripts/pgallery/src/pgallery.sh,v 1.15 2012/08/29 14:15:12 as Exp $ # ARG_TITLE="PGallery" @@ -19,14 +19,21 @@ ARG_INDEX="index.html" ARG_DIR="." ARG_UPDATE=1 ARG_COPYRIGHT="© $(date +%Y)" -ARG_INFOFILE="pgallery.txt" +ARG_INFOFILE="" +ARG_MAILTO="" +ARG_MAILFROM="PGallery <${USER}@${HOST}>" +ARG_URL= +ARG_EXIF="0x920a 0x829d 0x829a ISO 0x8827 / 0x010f - 0x0110" BIN_CONVERT="/usr/local/bin/convert" BIN_EXIFAUTOTRAN="/usr/local/bin/exifautotran" BIN_IMGINFO="/usr/local/bin/imginfo" +BIN_SENDMAIL="/usr/sbin/sendmail" +BIN_EXIFTRAN="/usr/local/bin/exiftran" +BIN_EXIF="/usr/local/bin/exif" MKAKEFILE=".htmakefile" -VERSION="pgallery-1.1" +VERSION="pgallery-1.3" # # usage() @@ -36,15 +43,19 @@ usage() cat <] | [-s ] ) [-d ] [-n ] [-t ] [-u ] - [-b ] [-c ] - [-i ] [-C ] [-U] | -h | -v + [-b ] [-c ] [-l link] [-e ] + [-i ] [-C ] [-F ] [-T ] + [-U] | -h | -v Options: -b size size from big images in pixel (default: $ARG_BIGSIZE) -c quality quality from big images 0-100% (default: $ARG_BIGQALITY) -d dir gallery dir (default: $ARG_DIR) + -e exif list of tags in hex. (default: $ARG_EXIF) + see: http://www.exiv2.org/tags.html -f files gallery images -h this page -i name index file name (default: $ARG_INDEX) + -l url gallery link -n name page title (default: $ARG_TITLE) -s suffix list of suffix. if no \`\`-f'' defined, used to find images in \`\`-d'' directoy. case insensitive @@ -53,10 +64,13 @@ Options: -u quality quality from thumbnail images 0-100% (default: $ARG_BIGQALITY) -v print version -C copyright copyright (html) string (default: $ARG_COPYRIGHT) + -F from mail sender (default: $ARG_MAILFROM) -I file info text file for pgallery. info file paras prefered. the syntax of the file is MAKE(1) - supported variable: TITLE COPYRIGHT INDEX FILETYPES TNSIZE - TNQALITY BIGSIZE BIGQALITY + supported variable: TITLE COPYRIGHT INDEX FILETYPES TNSIZE URL + TNQALITY BIGSIZE BIGQALITY MAILTO MAILFROM + EXIF + -T mailto send update infos to this address. if not set, no mail delivery -U no update, new calculation of all images. normally only new and modified images will calculated USAGE @@ -80,14 +94,15 @@ get_my_path() html_header() { cat < + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> $ARG_TITLE - -