summary refs log tree commit diff
path: root/justfile
blob: 825aa93dea6370e1b2016a0e32491fb677af1681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# list available recipes
default:
  just --list --unsorted

# run tests
test:
  #!/bin/zsh
  for f in **/*.test.fnl; do fennel $f | faucet; done

# build expect scripts
expects:
  for f in test/*.dat; do awk -f test/test.awk $f > ${f/dat/expect}; done

# make the project
project:
  awk '$0 ~ /^---$/ && times++ < 2 { a=!a;next; } a' doc/tilde30.t \
  | recfmt -f doc/tilde30.t \
  | awk '$0 ~ /^---$/ { times++;next } times > 1' \
  | nroff -ms -Tascii \
  | ssh tilde 'cat > .project'