summary refs log tree commit diff stats
path: root/ok
diff options
context:
space:
mode:
authorCase Duckworth2024-03-11 23:08:43 -0500
committerCase Duckworth2024-03-11 23:08:43 -0500
commitfcbabe0d2efd0329b72b8349192637d506037948 (patch)
tree58c0a9a883e4f804da1c7d5ceda86d92aa41b88a /ok
parentFirst commit (diff)
downloadll-fcbabe0d2efd0329b72b8349192637d506037948.tar.gz
ll-fcbabe0d2efd0329b72b8349192637d506037948.zip
Add okfile
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}