From 7fc28a7ff20596ba9b7ae8283401164be914fcb5 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 9 Aug 2017 19:58:59 +0300 Subject: add build.sh --- build.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 build.sh (limited to 'build.sh') diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..8ccbc4f --- /dev/null +++ b/build.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail + +script_name="$( basename -- "${BASH_SOURCE[0]}" )" + +case "$#" in + 0) ;; + 1) + dest_dir="$1" + ;; + *) + echo "usage: $script_name [DEST_DIR]" >&2 + exit 1 +esac + +bundle exec jekyll build \ + --config _config.yml,_config_dev.yml \ + ${dest_dir+--destination "$dest_dir"} -- cgit v1.2.3