Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_unix/rc/bin/patch/remove – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/rc
2
 
3
rfork e
4
if(~ $#* 0){
5
	echo 'usage: patch/remove patch-name...' >[1=2]
6
	exit usage
7
}
8
 
9
if(! test -d /n/sources/patch){
10
	rfork n
11
	9fs sources
12
}
13
 
14
for(i){
15
	if(! test -d /n/sources/patch/$i)
16
		echo 'no such patch' /n/sources/patch/$i >[1=2]
17
	if not
18
		rm -rf /n/sources/patch/$i
19
}