blob: c4d4f0178386edc22b435d6ed330874da6b168b6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
printf "Did you update the 'Recent Blog Posts' section? [yn] "
read answer
if [ "$answer" != "${answer#[Yy]}" ] ; then
if [ "$ENV" == "prod" ]; then
echo "Environment = Production" && \
rm -rf .build/* && \
emacs --script publish.el && \
pandoc -f org -t html readme.org -o readme.html && \
hut git update --readme readme.html --repo \
https://git.sr.ht/\~cyborg/cleberg.net && \
rsync -av --delete-before .build/* ubuntu:/var/www/cleberg.net/
else
echo "Environment = Development" && \
rm -rf .build/* && \
emacs --script publish.el && \
cd .build/ && \
python3 -m http.server
fi
else
echo No
fi
|