summaryrefslogtreecommitdiff
path: root/rc/bin/patch/okay
blob: df7813d50c7fe75ebbc765fcf586dadd956b3315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/rc

rfork e
if(! ~ $#* 1){
	echo usage: patch/okay dir >[1=2]
	exit usage
}

i=$1
if(! test -s $i/files || ! test -s $i/readme)
	exit 'missing files'
if(grep -v '^/[_a-zA-Z0-9.\-+/:]+ [_a-zA-Z0-9.\-+:]+$' $i/files)
	exit 'bad file list' 
exit 0