Commit 0c8cbcd9c0

0c8cbcd9c05cc3a46aa649690968c915b9a80f4c

parent: c31df323b0

Unsigned

cmc <hello@cleberg.net> · 2024-07-29 01:59 UTC

add custom README build steps

Layout: unified · split

.gitignore +1
@@ -2,3 +2,4 @@
2.DS_Store 2.DS_Store
3.vscode 3.vscode
4public 4public
5readme.html
build.sh +6 −3
@@ -5,9 +5,12 @@ read answer
5 5
6if [ "$answer" != "${answer#[Yy]}" ] ; then 6if [ "$answer" != "${answer#[Yy]}" ] ; then
7 if [ "$ENV" == "prod" ]; then 7 if [ "$ENV" == "prod" ]; then
8 echo "Environment = Production" && \ 8 echo "Environment = Production" && \
9 rm -rf .build/* && \ 9 rm -rf .build/* && \
10 emacs --script publish.el && \ 10 emacs --script publish.el && \
11 pandoc -f org -t html readme.org -o readme.html && \
12 hut git update --readme readme.html --repo \
13 https://git.sr.ht/\~cyborg/cleberg.net && \
11 rsync -av --delete-before .build/* ubuntu:/var/www/cleberg.net/ 14 rsync -av --delete-before .build/* ubuntu:/var/www/cleberg.net/
12 else 15 else
13 echo "Environment = Development" && \ 16 echo "Environment = Development" && \