#!/usr/bin/env bash # # The Gemtexter blog engine and static site generator # by Paul Buetow 2021 declare -r ARG="$1"; shift declare -r VERSION=1.1 declare -r VERSION_DESCR=prerelease 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/gemtexter.conf ]]; then source ~/.config/gemtexter.conf else source ./gemtexter.conf fi source ./lib/assert.source.sh source ./lib/git.source.sh source ./lib/atomfeed.source.sh source ./lib/gemfeed.source.sh source ./lib/generate.source.sh source ./lib/html.source.sh source ./lib/log.source.sh source ./lib/md.source.sh help () { cat <