summary refs log tree commit diff stats
path: root/ok
blob: 26ec2b7f2c43d8378bdc674de133a3ad83c99702 (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 |
			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/
}