summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-02-20 10:29:34 +0000
committerPaul Buetow <paul@buetow.org>2022-02-20 10:29:34 +0000
commit52b3acc71006dec6ab33eb1fea7897d05aef334a (patch)
tree5c720dc2e7968068234e0cf9861fa666ec9433c9 /src
parent38abc2ecb3cbc70aeb11d9d390d9a6ef53478a23 (diff)
remove recursive function - was broken anyway
Diffstat (limited to 'src')
-rwxr-xr-xsrc/photoalbum.sh28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/photoalbum.sh b/src/photoalbum.sh
index 242e756..331cf32 100755
--- a/src/photoalbum.sh
+++ b/src/photoalbum.sh
@@ -11,7 +11,7 @@ declare RC_FILE="$1" ; shift
usage () {
cat - <<USAGE >&2
Usage:
- $0 clean|generate|version|makemake|recursive:DIR [rcfile]
+ $0 clean|generate|version|makemake [rcfile]
USAGE
}
@@ -227,31 +227,6 @@ generate () {
fi
}
-recursive () {
- local dir="$(cut -d: -f2 <<< "$ARG1")"
-
- if [ ! -d "$dir" ]; then
- echo "Directory $dir does not exist!"
- exit 1
- fi
-
- find "$dir" -type d | grep -v '\.HTML' |
- while read -r d; do
- test ! -d "$d.HTML" && mkdir "$d.HTML "
- rc_file="$d.HTML/photoalbumrc"
- cd "$d.HTML" && cp "$RC_FILE" "$rc_file" && chmod 644 "$rc_file"
- {
- echo "INCOMING_DIR=$d";
- echo "DIST_DIR=$d.HTML";
- echo "ORIGINAL_BASEPATH=../../$(basename "$d")";
- } >> "$rc_file"
-
- photoalbum generate "$rc_file"
- cd - &>/dev/null
- test -d "$d.HTML" && test ! -d "$d.HTML/thumbs" && rm -Rf "$d.HTML"
- done
-}
-
if [ -z "$RC_FILE" ]; then
if [ -f photoalbumrc ]; then
RC_FILE=photoalbumrc
@@ -274,7 +249,6 @@ case "$ARG1" in
generate) generate;;
version) echo "This is Photoalbum Version $VERSION";;
makemake) makemake;;
- recursive*) recursive;;
*) usage;;
esac