From 84b6d6c6a7e55a606373607c054906f95d0f4ad3 Mon Sep 17 00:00:00 2001 From: Duncan Wilkie Date: Mon, 18 Sep 2023 08:33:40 -0500 Subject: Emacs Lisp -> Scheme transpiler, implementing forms.el logic. --- build-n-publish.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build-n-publish.sh') diff --git a/build-n-publish.sh b/build-n-publish.sh index 9ee2df9..bcd0cdb 100755 --- a/build-n-publish.sh +++ b/build-n-publish.sh @@ -1,8 +1,14 @@ #!/bin/sh +# Make sure the library assets are synchronized: +cd assets/library +git fetch --all && git reset --hard origin/master +cd ../.. + # Build and publish the HTML site: haunt build && haunt publish +# Now convert to Gemini # Uses https://github.com/LukeEmmet/html2gmi # Converts the site into text/gemini; outputs to ./gemini. # There is a publisher which copies that to /home/gemini/gemini/content on the remote. @@ -34,9 +40,13 @@ for pic in $root/site/assets/image/*; do cp $pic $root/gemini/assets/image/ done +# Copy over relevant site assets to Gemland cp $root/site/assets/cv.pdf $root/gemini/assets/ cp $root/site/assets/pubkey.txt $root/gemini/assets/ cp $root/site/feed.xml $root/gemini/ +# Refresh the Gemini site on the server. rsync -r gemini/* root@$remotename:$remotedir ssh root@functorial.xyz "systemctl restart agate" + +# TODO: see if committing and pushing interactively here makes sense. -- cgit v1.2.3