From 4ca143713c90a020fa3a3864f3d7acbdfe7c42cf Mon Sep 17 00:00:00 2001 From: "Paul C. Buetow (mars.fritz.box)" Date: Wed, 7 May 2014 10:14:17 +0200 Subject: add makemake --- src/photoalbum.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/photoalbum.sh b/src/photoalbum.sh index 034a518..e467aeb 100755 --- a/src/photoalbum.sh +++ b/src/photoalbum.sh @@ -32,7 +32,7 @@ function init() { } function clean() { - echo "Not deleting ${INCOMING_DIR}" + echo "Not deleting ${INCOMING_DIR} but ${DIST_DIR}" [ -d "${DIST_DIR}" ] && rm -Rf "${DIST_DIR}" } @@ -184,6 +184,16 @@ function makedist() { done } +function makemake() { + [ ! -f ./photoalbumrc ] && cp /etc/default/photoalbum ./photoalbumrc + cat < ./Makefile +all: + photoalbum all photoalbumrc +clean: + photoalbum clean photoalbumrc +MAKEFILE +} + source "${RC}" if [ -f ~/.photoalbumrc ]; then @@ -192,7 +202,6 @@ fi case "${ARG1}" in all) - clean init generate ;; @@ -208,6 +217,9 @@ case "${ARG1}" in version) echo "This is Photoalbum Version ${VERSION}" ;; + makemake) + makemake + ;; *) usage ;; -- cgit v1.2.3