From 1efb3f5e692afdfea2517245afe779151af82132 Mon Sep 17 00:00:00 2001 From: Rakarake Date: Sun, 5 Apr 2026 22:48:57 +0200 Subject: [PATCH] using binary in project root instead --- .gitignore | 1 + run.sh | 6 ++++-- test.sh | 5 ----- 3 files changed, 5 insertions(+), 7 deletions(-) delete mode 100755 test.sh diff --git a/.gitignore b/.gitignore index d556b87..ca16980 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ index.html blog-tmp.html public/index.html public/rss.xml +mdf-blog diff --git a/run.sh b/run.sh index 7f08741..94ca468 100755 --- a/run.sh +++ b/run.sh @@ -1,8 +1,10 @@ #/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/{ r blog-tmp.html d }' > public/index.html -cargo run -- rss blogs/* > public/rss.xml +./mdf-blog rss blogs/* > public/rss.xml diff --git a/test.sh b/test.sh deleted file mode 100755 index c416550..0000000 --- a/test.sh +++ /dev/null @@ -1,5 +0,0 @@ -x=a/b/c/d -y=a/ -echo ${x#a/} -echo ${x#$y} -echo ${x#*/}