better run.sh

This commit is contained in:
Rakarake 2026-04-05 23:11:43 +02:00
parent 1efb3f5e69
commit 08ab6070d4

6
run.sh
View file

@ -1,10 +1,12 @@
#/bin/sh
cargo build && cp target/debug/mdf-blog . || true
./mdf-blog html blogs/* > blog-tmp.html
BLOGS=$(ls $PWD/blogs/*)
./mdf-blog html $BLOGS > blog-tmp.html
sed template.html -e '/INSERT_HERE/{
r blog-tmp.html
d
}' > public/index.html
./mdf-blog rss blogs/* > public/rss.xml
./mdf-blog rss $BLOGS > public/rss.xml