diff options
Diffstat (limited to 'src/libmp/port')
-rw-r--r-- | src/libmp/port/mkfile | 2 | ||||
-rw-r--r-- | src/libmp/port/reduce | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/libmp/port/mkfile b/src/libmp/port/mkfile index 682c6763..b0cf77cd 100644 --- a/src/libmp/port/mkfile +++ b/src/libmp/port/mkfile @@ -35,7 +35,7 @@ FILES=\ ALLOFILES=${FILES:%=%.$O} # cull things in the per-machine directories from this list -OFILES= `{sh ./reduce $O $objtype $ALLOFILES} +OFILES= `{sh ./reduce $O $OBJTYPE $ALLOFILES} HFILES=\ $PLAN9/include/lib9.h\ diff --git a/src/libmp/port/reduce b/src/libmp/port/reduce index b3980756..269f510a 100644 --- a/src/libmp/port/reduce +++ b/src/libmp/port/reduce @@ -3,6 +3,8 @@ shift objtype=$1 shift -reduce="("`ls -p ../$objtype/*.[cs] 2>/dev/null | sed 's/..$//' | sed 's/^.*\///' | tr '\012' '|' | sed 's/.$//'`")" +nl=' +' +reduce="("`ls -p ../$objtype/*.[cs] 2>/dev/null | sed 's/..$//' | sed 's/^.*\///' | tr "$nl" '|' | sed 's/.$//'`")" -echo $* | tr ' ' '\012' | egrep -v $reduce | tr \012 ' ' +echo $* | tr ' ' "$nl" | egrep -v $reduce | tr "$nl" ' ' |