From 15147ca676f7f77697889b65721540f8b8a813ab Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 26 Dec 2020 09:52:34 +0100 Subject: Generate precompressed files, use variables for some nav-related values --- scripts/build_content.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts/build_content.sh') diff --git a/scripts/build_content.sh b/scripts/build_content.sh index 6ce857f..9623427 100755 --- a/scripts/build_content.sh +++ b/scripts/build_content.sh @@ -13,7 +13,7 @@ handle () { mkdir -p $(dirname "$TARGET") if [ "${1#*.}" = "md" ]; then - echo "[COMPILE] $1 -> $TARGET" + echo "[COMPILE ] $1 -> $TARGET" pandoc "$1" \ -f markdown \ @@ -22,7 +22,7 @@ handle () { -o "$TARGET" \ --metadata-file metadata/metadata.json else - echo "[COPY ] $1 -> $TARGET" + echo "[ COPY ] $1 -> $TARGET" cp "$1" "$TARGET" fi @@ -45,18 +45,18 @@ elif [ "$1" = "md" ]; then done elif [ "$1" = "single" ]; then if [ -z "$2" ]; then - echo "[ERROR ] \"single\" operation requires file argument" + echo "[ ERROR ] \"single\" operation requires file argument" else handle "$2" fi elif [ "$1" = "delete" ]; then if [ -z "$2" ]; then - echo "[ERROR ] \"delete\" operation requires file argument" + echo "[ ERROR ] \"delete\" operation requires file argument" else TARGET=$(target "$2") - echo "[DELETE ] $2 -> $TARGET" + echo "[ DELETE ] $2 -> $TARGET" rm -rf $TARGET fi else - echo "[ERROR ] Unknown operation: \"$1\"" + echo "[ ERROR ] Unknown operation: \"$1\"" fi -- cgit v1.2.3-70-g09d2