From 6b17c8f11be7556af7ae454b12dc37c9fb264a48 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 21 Apr 2004 06:53:59 +0000 Subject: more tomfoolery. i bet mk can't read the mac os or sun os archives. --- src/libmp/port/reduce | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/libmp/port') 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 -- cgit v1.2.3