Process comments from a file

This commit is contained in:
mez 2025-07-16 20:15:53 +01:00
parent e03e20aabf
commit ca068b23f0
5 changed files with 41 additions and 9 deletions

View file

@ -13,22 +13,30 @@ for i in 20*.org; do
emacs --batch --no-site-file -l pre.el $i -l export.el -f org-html-export-to-html --kill
done
python3 comproc.py
for i in 20*.html; do
if test -f comm-$i; then
sed -i -e "/<!-- comments go here -->/{r comm-$i" -e "d}" $i
fi
done
python3 rssgen.py
for i in *.html; do
for i in 20*.html; do
thebase="${i%%.*}"
dirname=${thebase//"-"/}
mkdir build/$dirname
mv $i build/$dirname/index.html
done
mv readme.org tempfile
for i in *.org; do
for i in 20*.org; do
rm -f $i
done
mv tempfile readme.org
for i in comm*.html; do
rm -f $i
done
rclone copy build prazevps:/var/www/tre/public/notes -P