working decently

This commit is contained in:
mez 2025-05-05 15:32:12 +01:00
commit e09b798966
6 changed files with 964 additions and 0 deletions

28
build.sh Executable file
View file

@ -0,0 +1,28 @@
#!/usr/bin/env bash
rm -rf build
mkdir build
python3 identify.py
for i in *.org; do
echo Exporting $i
emacs --batch -l pre.el $i -l export.el -f org-html-export-to-html --kill
done
for i in *.html; do
thebase="${i%%.*}"
dirname=${thebase//"-"/}
mkdir build/$dirname
mv $i build/$dirname/index.html
done
for i in *.org; do
rm -f $i
done
rclone copy build prazevps:/var/www/tre/public/notes -P
current_date=$(date +"%Y%m%d")
curl -i -d "source=https://tre.praze.net/notes/$current_date&target=https://fed.brid.gy/" https://fed.brid.gy/webmention