#!/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 ''
#!/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 e
thisboot=`{basename `{pwd}}
boot=../$thisboot
echo bindpc $*
pfx=$1
sfx=$2
# mostly for mk clean or *.clean
if (~ $#pfx 0)
pfx=''
if (~ $#sfx 0)
sfx=''
bind -bc $boot $boot
# duplicate $pfx as $pfx$sfx
cfgs=`{ls -d $pfx^* | grep -v '\.|mkfile|'^$sfx^'$'}
aux/stub -d /tmp/blank
for (f in $cfgs)
aux/stub /tmp/blank/$f$sfx
bind -a /tmp/blank .
for (f in $cfgs)
bind $f $f$sfx
bind -a ../pc $boot
# bind systab.h ../port/systab.h
exit ''