aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-26 11:49:33 +0100
committereunhhu <[email protected]>2026-09-26 11:49:33 +0100
commitcb0f7878f11025ea31cd4c5cecb5ae359b14c148 (patch)
tree2c2e55d415a5fe264f5a431edfcc45d14f059122 /README.md
parent7b0d1ec72ee45631d7e71d7498d360b49e268eb6 (diff)
downloadaup-cb0f7878f11025ea31cd4c5cecb5ae359b14c148.tar.gz
aup-cb0f7878f11025ea31cd4c5cecb5ae359b14c148.zip
Add aup watch: build again when what a build read changes
A build records every path it opened or looked for and a digest of the bytes there, so a rebuild happens exactly when one of them reads differently: the source, a library (the one with the error too), or a library appearing where one was searched. A change is built once it reads the same twice in a row, so a file caught halfway through being written is never built; the module is replaced whole through a rename.
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 421a81c..f3358be 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,7 @@ v0c(레코드·리스트·`index of`·조건식·표 보기·`fn`·`use` 라이�
```sh
make # build/aup
build/aup build examples/counter.aup -o counter.pmod
+build/aup watch examples/counter.aup -o counter.pmod # 저장할 때마다 다시 빌드(vega ... --watch가 받아 바꾼다)
printf 'down tap\nup tap\nshow\n' | ../pure/prototypes/connections/build/pure-run counter.pmod
build/aup build examples/notes.aup -o notes.pmod
printf 'type typed %s\ndown left\nshow\n' "$(printf '안녕' | xxd -p)" | ../pure/prototypes/connections/build/pure-run notes.pmod