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 ++++++------ scripts/build_fonts.sh | 4 ++-- scripts/build_sass.sh | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'scripts') 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 diff --git a/scripts/build_fonts.sh b/scripts/build_fonts.sh index 11c01db..d8ed9ea 100755 --- a/scripts/build_fonts.sh +++ b/scripts/build_fonts.sh @@ -1,6 +1,6 @@ #!/bin/bash -echo "[MINIFY ] assets/fonts/iosevka-term-ss09-regular.ttf -> output/iosevka-term-ss09-regular.woff2" +echo "[ MINIFY ] assets/fonts/iosevka-term-ss09-regular.ttf -> output/iosevka-term-ss09-regular.woff2" pyftsubset assets/fonts/iosevka-term-ss09-regular.ttf \ --text-file='assets/fonts/glyphs.txt' \ @@ -8,7 +8,7 @@ pyftsubset assets/fonts/iosevka-term-ss09-regular.ttf \ --flavor='woff2' \ --output-file='output/iosevka-term-ss09-regular.woff2' -echo "[MINIFY ] assets/fonts/iosevka-term-ss09-bold.ttf -> output/iosevka-term-ss09-bold.woff2" +echo "[ MINIFY ] assets/fonts/iosevka-term-ss09-bold.ttf -> output/iosevka-term-ss09-bold.woff2" pyftsubset assets/fonts/iosevka-term-ss09-bold.ttf \ --text-file='assets/fonts/glyphs.txt' \ diff --git a/scripts/build_sass.sh b/scripts/build_sass.sh index 2e25f10..2711a89 100755 --- a/scripts/build_sass.sh +++ b/scripts/build_sass.sh @@ -1,4 +1,4 @@ #!/bin/bash -echo "[COMPILE] assets/css/style.scss -> output/style.css" +echo "[COMPILE ] assets/css/style.scss -> output/style.css" sassc assets/css/style.scss | node_modules/.bin/csso > output/style.css -- cgit v1.2.3-70-g09d2