blob: 228afccec8eda80ec9d9e002cedba10447d75e46 (
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
|
#!/usr/bin/env bash
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/md.source.sh
help () {
cat <<HELPHERE
$0's possible arguments:
--feed
--publish
--test
--help
HELPHERE
}
case $ARG in
--test)
html::test
md::test
;;
--feeds)
gemfeed::generate
atomfeed::generate
;;
--generate)
html::test
md::test
gemfeed::generate
atomfeed::generate
generate::fromgmi html md
;;
--help|*)
help
;;
esac
exit 0
|