summaryrefslogtreecommitdiff
path: root/buetow.org.sh
diff options
context:
space:
mode:
Diffstat (limited to 'buetow.org.sh')
-rwxr-xr-xbuetow.org.sh64
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 $?