aboutsummaryrefslogtreecommitdiff
path: root/bin/assemble
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-08 10:05:30 +0100
committerSilvio Rhatto <rhatto@riseup.net>2024-06-08 10:05:30 +0100
commit46087a2503032443d7f0613e5aeb2a5195c27850 (patch)
tree910ebd4bdc62360ed53881671a471d5ef2e2ca44 /bin/assemble
parentbff0778cb9751a0581ab0eb2ca97cbdca8bcca03 (diff)
downloadbookup-46087a2503032443d7f0613e5aeb2a5195c27850.tar.gz
bookup-46087a2503032443d7f0613e5aeb2a5195c27850.tar.bz2
Fix: misc improvements
Diffstat (limited to 'bin/assemble')
-rwxr-xr-xbin/assemble19
1 files changed, 10 insertions, 9 deletions
diff --git a/bin/assemble b/bin/assemble
index cd0836c..3b5b287 100755
--- a/bin/assemble
+++ b/bin/assemble
@@ -8,26 +8,27 @@ BASENAME="`basename $0 | sed -e 's/\(.\)/\U\1/'`"
DIRNAME="`dirname $0`"
BASEDIR="$DIRNAME/.."
SITE="site"
+BOOK="book"
NOTEBOOK="notebook"
-PUBLIC="public"
+BUILD="build"
-# Cleanup the previous public folder
-rm -rf $PUBLIC
+# Cleanup the previous build folder
+rm -rf $BUILD
# Check if there's a site folder
if [ -e "$SITE" ]; then
- cp -a $SITE public
+ cp -a $SITE $BUILD
- if [ -e "compiled" ]; then
- mv compiled public/book
+ if [ -e "$BOOK" ]; then
+ mv $BOOK $BUILD/book
fi
else
- if [ -e "compiled" ]; then
- mv compiled public
+ if [ -e "$BOOK" ]; then
+ mv $BOOK $BUILD
fi
fi
# Check if there's a notebook
if [ -e "$NOTEBOOK" ]; then
- mv $NOTEBOOK public/notes
+ mv $NOTEBOOK $BUILD/notes
fi