From efa7f66884c81fdf404a839bd89ed70b69453df1 Mon Sep 17 00:00:00 2001 From: "Paul C. Buetow (mars.fritz.box)" Date: Wed, 7 May 2014 11:08:45 +0200 Subject: Hell is empty and all the devils are here. -- Wm. Shakespeare, "The Tempest" --- src/photoalbum.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/photoalbum.sh b/src/photoalbum.sh index fda18e1..3d90052 100755 --- a/src/photoalbum.sh +++ b/src/photoalbum.sh @@ -67,9 +67,9 @@ function generate() { TARBALL_NAME="${BASE}-${NOW}${TARBALL_SUFFIX}" fi - scale + makescale find "${DIST_DIR}/html" -type f -name \*.html -delete - makedist 1 + makehtml 1 template index ../index tarball } @@ -81,7 +81,7 @@ function template() { source "${TEMPLATE_DIR}/${template}.tmpl" >> "${DIST_DIR}/html/${html}.html" } -function scale() { +function makescale() { cd "${INCOMING_DIR}" && find ./ -type f | sort | while read photo; do photo=$(sed 's#^\./##' <<< "${photo}") destphoto="${DIST_DIR}/photos/${photo}" @@ -100,7 +100,7 @@ function scale() { done } -function makedist() { +function makehtml() { local num=${1} ; shift local name=page-${num} local -i i=0 @@ -180,6 +180,7 @@ all: clean: photoalbum clean photoalbumrc MAKEFILE + echo You may now customize ./photoalbumrc and run make } source "${RC}" -- cgit v1.2.3