using binary in project root instead
This commit is contained in:
parent
f398e4336d
commit
1efb3f5e69
3 changed files with 5 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -4,3 +4,4 @@ index.html
|
|||
blog-tmp.html
|
||||
public/index.html
|
||||
public/rss.xml
|
||||
mdf-blog
|
||||
|
|
|
|||
6
run.sh
6
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
|
||||
|
||||
|
|
|
|||
5
test.sh
5
test.sh
|
|
@ -1,5 +0,0 @@
|
|||
x=a/b/c/d
|
||||
y=a/
|
||||
echo ${x#a/}
|
||||
echo ${x#$y}
|
||||
echo ${x#*/}
|
||||
Loading…
Add table
Add a link
Reference in a new issue