blob: 628209e9c6ad322c085e3dba946108f9c9380994 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#!/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
which gdate &>/dev/null && DATE=gdate
which gsed &>/dev/null && SED=gsed
source buetow.org.conf
source ./modules/assert.source.sh
source ./modules/atomfeed.source.sh
source ./modules/gemfeed.source.sh
source ./modules/generate.source.sh
source ./modules/html.source.sh
source ./modules/log.source.sh
source ./modules/md.source.sh
help () {
cat <<HELPHERE
$0's possible arguments:
--feed
--publish
--test
--help
HELPHERE
}
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
exit 0
|