mdf-blog/run.sh
2026-04-05 23:11:43 +02:00

12 lines
251 B
Bash
Executable file

#/bin/sh
cargo build && cp target/debug/mdf-blog . || true
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