2004-03-02 17:34:15 +00:00
|
|
|
<mkhdr
|
|
|
|
|
2004-03-25 23:03:57 +00:00
|
|
|
BUGGERED='9p|fmt|html|httpd|ip|utf|venti'
|
2004-03-09 12:45:12 +00:00
|
|
|
LIBDIRS=`ls -ld lib* | sed -n 's/^d.* //p' |egrep -v "^lib($BUGGERED)$"`
|
|
|
|
|
2003-11-23 18:10:54 +00:00
|
|
|
DIRS=\
|
2004-03-09 12:45:12 +00:00
|
|
|
$LIBDIRS\
|
2003-11-23 20:04:53 +00:00
|
|
|
cmd\
|
2003-11-23 18:10:54 +00:00
|
|
|
|
|
|
|
<mkdirs
|
|
|
|
|
|
|
|
MKDIRS=\
|
|
|
|
libbio\
|
|
|
|
libregexp\
|
|
|
|
cmd/mk\
|
|
|
|
|
|
|
|
mkmk.sh:VD:
|
|
|
|
(
|
2004-02-29 22:49:59 +00:00
|
|
|
echo cd lib9
|
2004-03-02 17:34:15 +00:00
|
|
|
(cd lib9; mk -n -a install)
|
2004-02-29 22:49:59 +00:00
|
|
|
echo cd ..
|
|
|
|
for i in libbio libregexp cmd/mk
|
2003-11-23 18:10:54 +00:00
|
|
|
do
|
|
|
|
echo cd $i
|
|
|
|
(cd $i; mk -n -a install)
|
|
|
|
echo cd ..
|
|
|
|
done
|
2004-03-04 02:06:46 +00:00
|
|
|
) | sed '
|
|
|
|
s/'$SYSNAME'/$SYSNAME/g
|
|
|
|
s/'$OBJTYPE'/$OBJTYPE/g
|
|
|
|
s/9[ac] *getcallerpc-.*/9a getcallerpc-$OBJTYPE.s || 9c getcallerpc-$OBJTYPE.c/
|
|
|
|
s/^9[ac] *tas-.*/9a tas-$OBJTYPE.s || 9c tas-$OBJTYPE.c/
|
|
|
|
' >$target
|
2003-11-23 18:10:54 +00:00
|
|
|
|
|
|
|
testmkmk:V:
|
|
|
|
mk mkmk.sh
|
|
|
|
rm -f ../lib/lib*.a
|
|
|
|
mv ../bin/mk ../bin/_mk
|
|
|
|
sh -ex mkmk.sh
|
|
|
|
ls -l ../bin/mk
|
|
|
|
|
|
|
|
testcvs:V:
|
2003-11-23 19:49:17 +00:00
|
|
|
(cd ..; cvs up -dAP)
|
2003-11-23 18:10:54 +00:00
|
|
|
cp ../bin/_mk ../bin/mk
|
|
|
|
mk clean
|
|
|
|
rm ../lib/*.a
|
|
|
|
mv ../bin/mk ../bin/_mk
|
|
|
|
rm ../bin/*
|
|
|
|
PLAN9="`pwd`/.." export PLAN9
|
|
|
|
PATH=$PLAN9/bin:$PATH export PATH
|
|
|
|
|