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/sys/src/9/port/mkrootall – 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
n=`{echo $#*^'%3' | hoc}
5
if(! ~ $n 0){
6
	echo 'usage: mkrootall [name cname file]...' >[1=2]
7
	exit usage
8
}
9
 
10
tmp=mkroot.$pid.out
11
fn sigexit {
12
	rm -f $tmp
13
}
14
 
15
allcname=()
16
while(! ~ $#* 0){
17
	name=$1
18
	cname=$2
19
	file=$3
20
	shift
21
	shift 
22
	shift
23
	allcname=($allcname $cname)
24
	cp $file $tmp
25
	t=`{file $tmp}
26
	# do not strip venti - it uses its own symbols
27
	if(~ $"t *executable* && ! ~ $name venti)
28
		strip $tmp
29
	aux/data2s $cname < $tmp
30
}
31
exit 0