summary refs log tree commit diff stats
path: root/ok
diff options
context:
space:
mode:
Diffstat (limited to 'ok')
-rw-r--r--ok26
1 files changed, 26 insertions, 0 deletions
diff --git a/ok b/ok new file mode 100644 index 0000000..26ec2b7 --- /dev/null +++ b/ok
@@ -0,0 +1,26 @@
1# -*- sh -*-
2
3watch(){ # repeatedly serve directory as files change
4 while :
5 do
6 printf '%s\n' *.ul *.ol *.al *.dl |
7 ok entr -d -r ok serve
8 $NORUN && break
9 done
10}
11
12build(){ # build the linklog
13 ok ./ll
14}
15
16serve(){ # serve the linklog locally
17 dep build
18 quietly killall cock
19 ok cock
20}
21
22publish(){ # publish to server
23 dep build
24 ok rsync -vzrlD --delete --exclude .git \
25 ./ hetzner:/var/www/www.acdw.net/lists/
26}