better run.sh
This commit is contained in:
parent
1efb3f5e69
commit
08ab6070d4
1 changed files with 4 additions and 2 deletions
6
run.sh
6
run.sh
|
|
@ -1,10 +1,12 @@
|
||||||
#/bin/sh
|
#/bin/sh
|
||||||
cargo build && cp target/debug/mdf-blog . || true
|
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/{
|
sed template.html -e '/INSERT_HERE/{
|
||||||
r blog-tmp.html
|
r blog-tmp.html
|
||||||
d
|
d
|
||||||
}' > public/index.html
|
}' > public/index.html
|
||||||
./mdf-blog rss blogs/* > public/rss.xml
|
./mdf-blog rss $BLOGS > public/rss.xml
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue