Compare commits
No commits in common. "c019a1536d605bf91d96f163d34e757aad99ca9b" and "ac3290ae3e00485dfe769678f434dbdf2886d3e7" have entirely different histories.
c019a1536d
...
ac3290ae3e
7
justfile
7
justfile
|
@ -4,19 +4,20 @@ default:
|
|||
|
||||
# print assembled text to stdout
|
||||
build:
|
||||
@find src -name '*.txt' -type f | sort -n | xargs m4 macros
|
||||
@find src -name '*.txt' -type f -print0 | sort -nz | xargs -0 m4 macros
|
||||
|
||||
# watch for changes and build index.html
|
||||
watch:
|
||||
@find src -type f | entr just html
|
||||
|
||||
tohtml := "pandoc --toc -s -c static/styles/main.css -H static/head.html -f markdown+simple_tables"
|
||||
# create index.html
|
||||
html:
|
||||
@just build | pandoc --toc -s -c static/styles/main.css -H static/head.html -f markdown+simple_tables > index.html
|
||||
@just build | {{tohtml}} > index.html
|
||||
|
||||
# word count
|
||||
words:
|
||||
find src -type f | xargs wc -w
|
||||
find src -type f -iname '*.txt' -print0 | xargs -0 wc -w
|
||||
|
||||
# clean up artifacts
|
||||
clean:
|
||||
|
|
Loading…
Reference in New Issue