mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
more tomfoolery.
i bet mk can't read the mac os or sun os archives.
This commit is contained in:
parent
d946e4dc5d
commit
6b17c8f11b
4 changed files with 21 additions and 6 deletions
7
bin/membername
Executable file
7
bin/membername
Executable 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
|
|
@ -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
|
||||
|
|
|
@ -55,7 +55,6 @@ ALLOFILES=\
|
|||
x509.$O\
|
||||
|
||||
OFILES=`{sh ./reduce $O $OBJTYPE $ALLOFILES}
|
||||
|
||||
HFILES=$PLAN9/include/libsec.h
|
||||
|
||||
<$PLAN9/src/mksyslib
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue