mdf-blog/run.sh

10 lines
227 B
Bash
Executable file

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