From fcbabe0d2efd0329b72b8349192637d506037948 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 11 Mar 2024 23:08:43 -0500 Subject: Add okfile --- ok | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ok diff --git a/ok b/ok new file mode 100644 index 0000000..26ec2b7 --- /dev/null +++ b/ok @@ -0,0 +1,26 @@ +# -*- sh -*- + +watch(){ # repeatedly serve directory as files change + while : + do + printf '%s\n' *.ul *.ol *.al *.dl | + ok entr -d -r ok serve + $NORUN && break + done +} + +build(){ # build the linklog + ok ./ll +} + +serve(){ # serve the linklog locally + dep build + quietly killall cock + ok cock +} + +publish(){ # publish to server + dep build + ok rsync -vzrlD --delete --exclude .git \ + ./ hetzner:/var/www/www.acdw.net/lists/ +} -- cgit 1.4.1-21-gabe81