diff options
author | rsc <devnull@localhost> | 2004-04-21 06:53:59 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-21 06:53:59 +0000 |
commit | 6b17c8f11be7556af7ae454b12dc37c9fb264a48 (patch) | |
tree | 924b9d0cf57024b794d09980cae9762fe8cf110a /src/libmp/port | |
parent | d946e4dc5df1c0fb9a06e6d94013613848c5df16 (diff) | |
download | plan9port-6b17c8f11be7556af7ae454b12dc37c9fb264a48.tar.gz plan9port-6b17c8f11be7556af7ae454b12dc37c9fb264a48.tar.bz2 plan9port-6b17c8f11be7556af7ae454b12dc37c9fb264a48.zip |
more tomfoolery.
i bet mk can't read the mac os or sun os archives.
Diffstat (limited to 'src/libmp/port')
-rw-r--r-- | src/libmp/port/reduce | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libmp/port/reduce b/src/libmp/port/reduce index 269f510a..78be309e 100644 --- a/src/libmp/port/reduce +++ b/src/libmp/port/reduce @@ -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 |