#!/usr/bin/env bash # # The buetow.org.sh static site generator # by Paul Buetow 2021 declare -r ARG="$1"; shift declare DATE=date declare SED=sed declare GREP=grep which gdate &>/dev/null && DATE=gdate which gsed &>/dev/null && SED=gsed which ggrep &>/dev/null && GREP=ggrep readonly DATE readonly SED readonly GREP set -e if [[ -n "$CONFIG_FILE_PATH" ]]; then source "$CONFIG_FILE_PATH" elif [[ -f ~/.config/buetow.org.conf ]]; then source ~/.config/buetow.org.conf else source ./buetow.org.conf fi source ./packages/assert.source.sh source ./packages/git.source.sh source ./packages/atomfeed.source.sh source ./packages/gemfeed.source.sh source ./packages/generate.source.sh source ./packages/html.source.sh source ./packages/log.source.sh source ./packages/md.source.sh help () { cat <