summaryrefslogtreecommitdiff
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
parent38abc2ecb3cbc70aeb11d9d390d9a6ef53478a23 (diff)
remove recursive function - was broken anyway
-rw-r--r--README.txt12
-rwxr-xr-xsrc/photoalbum.sh28
2 files changed, 7 insertions, 33 deletions
diff --git a/README.txt b/README.txt
index c0a7a51..b2609af 100644
--- a/README.txt
+++ b/README.txt
@@ -3,18 +3,18 @@ NAME
static web photo albums.
SYNOPSIS
- photoalbum clean|generate|version|recursive:DIR [rcfile] photoalbum
- makemake
+ photoalbum clean|generate|version [rcfile] photoalbum
+ photoalbum makemake
clean
Cleans up the working space
- version
- Prints out the version
-
generate
Generates the static photoalbum
+ version
+ Prints out the version
+
makemake
Creates a Makefile and photoalbumrc in the current working
directory.
@@ -41,5 +41,5 @@ LICENSE
See package description or project website.
AUTHOR
- Paul Buetow - <http://photoalbum.buetow.org>
+ Paul Buetow - <https://codeberg.org/foozone/photoalbum>
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