1#!/bin/rc 2 3rfork e 4n=`{echo $#*^'%3' | hoc} 5if(! ~ $n 0){ 6 echo 'usage: mkrootall [name cname file]...' >[1=2] 7 exit usage 8} 9 10tmp=mkroot.$pid.out 11fn sigexit { 12 rm -f $tmp 13} 14 15allcname=() 16while(! ~ $#* 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} 31exit 0 32