pandoc-blog/justfile

33 lines
528 B
Plaintext
Raw Normal View History

# show all recipes
default:
just --list
# build
build:
2022-03-12 17:06:34 +00:00
make -B build
2022-03-04 00:00:50 +00:00
# make fred say something
say phrase out:
say -v 'Fred' -r 100 -o {{out}} {{phrase}}
# watch for changes
watch:
ls content/*.md | entr make build
2022-03-04 00:00:50 +00:00
# length <file>
length file:
@wc -c < {{file}} #| cut -d ' ' -f 7
# duration <file>
duration file:
@ffprobe -show_entries stream=duration -of compact=p=0:nk=1 -v fatal {{file}}
# clean dist
clean:
rm -rf dist/*
touch dist/.gitkeep
2022-03-04 00:00:50 +00:00
# upload
up:
rsync -azP dist/ tilde:public_html/podcast