summaryrefslogtreecommitdiff
path: root/html/gen.sh
diff options
context:
space:
mode:
authorTaylan Kammer <taylan.kammer@gmail.com>2026-01-06 01:17:09 +0100
committerTaylan Kammer <taylan.kammer@gmail.com>2026-01-06 01:17:09 +0100
commit8b7ead9404281379558927e30bc3241708b31523 (patch)
tree577f403601f628dc2fa5d1f6696976f7063c0fee /html/gen.sh
parent5dd0e0052af74961c6e688122f6fb53273023010 (diff)
Update index and gen.sh.
Diffstat (limited to 'html/gen.sh')
-rwxr-xr-xhtml/gen.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/html/gen.sh b/html/gen.sh
index df78d25..445704f 100755
--- a/html/gen.sh
+++ b/html/gen.sh
@@ -2,6 +2,12 @@
set -euo pipefail
+if [ "$(pwd)" != "$HOME/src/zisp/html" ]
+then
+ echo >&2 "Call this from within the Zisp HTML directory."
+ exit 1
+fi
+
md2ht() {
src=$1
dst=$2
@@ -28,3 +34,5 @@ do
name=${name%.md}
md2ht "$note" "notes/$name.html"
done
+
+rsync -a ./ tk:/var/www/html/zisp