summary refs log tree commit diff stats
path: root/ok
blob: 6cf1c9c4c5cb454682424c2cb0ecd38e49e18662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- sh -*-

watch(){			# repeatedly serve directory as files change
	while :
	do
		printf '%s\n' *.ul *.ol *.al *.dl ll |
			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/
}