diff options
| author | Paul Buetow <git@mx.buetow.org> | 2021-05-19 12:39:49 +0100 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2021-05-19 12:39:49 +0100 |
| commit | 27ed46c9129db86669052d4e7211340da1081d89 (patch) | |
| tree | 971b3da55d8bc2630503645ff9ac6a41e73fb468 /buetow.org.sh | |
| parent | 752c272ef2c120904c069440117b12940770eb9f (diff) | |
html branch
Diffstat (limited to 'buetow.org.sh')
| -rwxr-xr-x | buetow.org.sh | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/buetow.org.sh b/buetow.org.sh deleted file mode 100755 index 57535b99..00000000 --- a/buetow.org.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/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 - -source buetow.org.conf -source ./packages/assert.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 <<HELPHERE -$0's possible arguments: - --feed - --publish - --test - --help -HELPHERE -} - -main () { - local -r arg="$1"; shift - - case $ARG in - --test) - html::test - md::test - ;; - --feed) - gemfeed::generate - atomfeed::generate - ;; - --generate) - html::test - md::test - gemfeed::generate - atomfeed::generate - generate::fromgmi html md - ;; - --help|*) - help - ;; - esac - - return 0 -} - -main $ARG -exit $? |
