more tomfoolery.

i bet mk can't read the mac os or sun os archives.
This commit is contained in:
rsc 2004-04-21 06:53:59 +00:00
parent d946e4dc5d
commit 6b17c8f11b
4 changed files with 21 additions and 6 deletions

7
bin/membername Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
for i
do
# This works whether sed uses \(\) or () for grouping.
echo $i | sed 's/.*\((.*)\).*/\1/' | tr -d '()'
done

View file

@ -5,6 +5,11 @@ shift
nl='
'
reduce="("`ls -p ../$objtype/*.[cs] 2>/dev/null | sed 's/..$//' | sed 's/^.*\///' | tr "$nl" '|' | sed 's/.$//'`")"
echo $* | tr ' ' "$nl" | egrep -v $reduce | tr "$nl" ' '
for i in $*
do
j=`echo $i | sed 's/\.o//'`
if test ! -f ../$objtype/$j.c -a ! -f ../$objtype/$j.s -a ! -f ../$objtype/$j.spp
then
echo $i
fi
done

View file

@ -55,7 +55,6 @@ ALLOFILES=\
x509.$O\
OFILES=`{sh ./reduce $O $OBJTYPE $ALLOFILES}
HFILES=$PLAN9/include/libsec.h
<$PLAN9/src/mksyslib

View file

@ -1,7 +1,11 @@
default:V: $PLAN9/lib/$LIB
$PLAN9/lib/$LIB: $OFILES
$AR rvc $PLAN9/lib/$LIB $newprereq
# $PLAN9/lib/$LIB: $OFILES
# $AR rvc $PLAN9/lib/$LIB $newprereq
$PLAN9/lib/$LIB(%):N: %
$PLAN9/lib/$LIB: ${OFILES:%=$PLAN9/lib/$LIB(%)}
ar rvc $PLAN9/lib/$LIB `membername $newprereq`
&:n: &.$O
$AR rvc $PLAN9/lib/$LIB $stem.$O