diff options
| author | Paul C. Buetow (mars.fritz.box) <paul@buetow.org> | 2014-05-07 11:08:45 +0200 |
|---|---|---|
| committer | Paul C. Buetow (mars.fritz.box) <paul@buetow.org> | 2014-05-07 11:08:45 +0200 |
| commit | efa7f66884c81fdf404a839bd89ed70b69453df1 (patch) | |
| tree | 9374ed34ba9f822d8b687569df045a829a04590f /src | |
| parent | 15e73417d066343b721b1c07e8b73a1abe17f28b (diff) | |
Hell is empty and all the devils are here.
-- Wm. Shakespeare, "The Tempest"
Diffstat (limited to 'src')
| -rwxr-xr-x | src/photoalbum.sh | 9 |
1 files 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}" |
