33 lines · 612 B · Text
RawDownload
#!/bin/rc# bindpc pfx sfx - bind files from ../pc into .# creating lots of stubs with aux/stub bogs down eventually, alas.if (test -e etherigbe.c)	exit '' rfork ethisboot=`{basename `{pwd}}boot=../$thisbootecho bindpc $*pfx=$1sfx=$2 # mostly for mk clean or *.cleanif (~ $#pfx 0)	pfx=''if (~ $#sfx 0)	sfx='' bind -bc $boot $boot # duplicate $pfx as $pfx$sfxcfgs=`{ls -d $pfx^* | grep -v '\.|mkfile|'^$sfx^'$'}aux/stub -d /tmp/blankfor (f in $cfgs)	aux/stub /tmp/blank/$f$sfxbind -a /tmp/blank .for (f in $cfgs)	bind $f $f$sfxbind -a ../pc $boot # bind systab.h ../port/systab.hexit ''