summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul C. Buetow (mars.fritz.box) <paul@buetow.org>2014-05-07 11:08:45 +0200
committerPaul C. Buetow (mars.fritz.box) <paul@buetow.org>2014-05-07 11:08:45 +0200
commitefa7f66884c81fdf404a839bd89ed70b69453df1 (patch)
tree9374ed34ba9f822d8b687569df045a829a04590f
parent15e73417d066343b721b1c07e8b73a1abe17f28b (diff)
Hell is empty and all the devils are here.
-- Wm. Shakespeare, "The Tempest"
-rwxr-xr-xsrc/photoalbum.sh9
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}"