working decently
This commit is contained in:
commit
e09b798966
6 changed files with 964 additions and 0 deletions
28
build.sh
Executable file
28
build.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue