using binary in project root instead

This commit is contained in:
Rakarake 2026-04-05 22:48:57 +02:00
parent f398e4336d
commit 1efb3f5e69
3 changed files with 5 additions and 7 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ index.html
blog-tmp.html blog-tmp.html
public/index.html public/index.html
public/rss.xml public/rss.xml
mdf-blog

6
run.sh
View file

@ -1,8 +1,10 @@
#/bin/sh #/bin/sh
cargo run -- html blogs/* > blog-tmp.html cargo build && cp target/debug/mdf-blog . || true
./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
cargo run -- rss blogs/* > public/rss.xml ./mdf-blog rss blogs/* > public/rss.xml

View file

@ -1,5 +0,0 @@
x=a/b/c/d
y=a/
echo ${x#a/}
echo ${x#$y}
echo ${x#*/}