aboutsummaryrefslogtreecommitdiff
path: root/bin/archive
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-07 21:24:47 +0100
committerSilvio Rhatto <rhatto@riseup.net>2024-06-07 21:24:47 +0100
commitf3b89d42e03a14385d1e32b7aa8450a2698ec076 (patch)
treec058e5cc1ba72027248656a6277fc8fd2b1bb069 /bin/archive
parent08af902dbc822db1754d18339efc83985c65c3c3 (diff)
downloadbookup-f3b89d42e03a14385d1e32b7aa8450a2698ec076.tar.gz
bookup-f3b89d42e03a14385d1e32b7aa8450a2698ec076.tar.bz2
Feat: support for website and notebook
Diffstat (limited to 'bin/archive')
-rwxr-xr-xbin/archive10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/archive b/bin/archive
index 27728e4..584ea13 100755
--- a/bin/archive
+++ b/bin/archive
@@ -10,8 +10,14 @@ BASEDIR="$DIRNAME/.."
#ARCHIVE="$BASEDIR/archive"
ARCHIVE="archive"
REVISION="`git describe --tags 2> /dev/null || git log -1 --format=oneline | cut -d ' ' -f 1`"
-#REVFILE="$BASEDIR/compiled/revision"
-REVFILE="compiled/revision"
+
+# Determine the revision file
+if [ -e "public/revision" ]; then
+ #REVFILE="$BASEDIR/public/revision"
+ REVFILE="public/revision"
+else
+ REVFILE="public/book/revision"
+fi
# Make sure the archive folder exist
mkdir -p $ARCHIVE