Subversion Repositories planix.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/rc
2
# bindpc pfx sfx - bind files from ../pc into .
3
# creating lots of stubs with aux/stub bogs down eventually, alas.
4
if (test -e etherigbe.c)
5
	exit ''
6
 
7
rfork e
8
thisboot=`{basename `{pwd}}
9
boot=../$thisboot
10
echo bindpc $*
11
pfx=$1
12
sfx=$2
13
 
14
# mostly for mk clean or *.clean
15
if (~ $#pfx 0)
16
	pfx=''
17
if (~ $#sfx 0)
18
	sfx=''
19
 
20
bind -bc $boot $boot
21
 
22
# duplicate $pfx as $pfx$sfx
23
cfgs=`{ls -d $pfx^* | grep -v '\.|mkfile|'^$sfx^'$'}
24
aux/stub -d /tmp/blank
25
for (f in $cfgs)
26
	aux/stub /tmp/blank/$f$sfx
27
bind -a /tmp/blank .
28
for (f in $cfgs)
29
	bind $f $f$sfx
30
bind -a ../pc $boot
31
 
32
# bind systab.h ../port/systab.h
33
exit ''