diff options
| author | Paul Buetow <paul@buetow.org> | 2022-02-20 10:29:34 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-02-20 10:29:34 +0000 |
| commit | 52b3acc71006dec6ab33eb1fea7897d05aef334a (patch) | |
| tree | 5c720dc2e7968068234e0cf9861fa666ec9433c9 | |
| parent | 38abc2ecb3cbc70aeb11d9d390d9a6ef53478a23 (diff) | |
remove recursive function - was broken anyway
| -rw-r--r-- | README.txt | 12 | ||||
| -rwxr-xr-x | src/photoalbum.sh | 28 |
2 files changed, 7 insertions, 33 deletions
@@ -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 |
