diff options
Diffstat (limited to 'src/libmp')
-rw-r--r-- | src/libmp/mkfile | 2 | ||||
-rw-r--r-- | src/libmp/port/mkfile | 2 | ||||
-rw-r--r-- | src/libmp/port/reduce | 6 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/libmp/mkfile b/src/libmp/mkfile index 417804df..e3f1aa69 100644 --- a/src/libmp/mkfile +++ b/src/libmp/mkfile @@ -2,6 +2,6 @@ DIRS=\ port\ - $objtype\ + $OBJTYPE\ <$PLAN9/src/mkdirs 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" ' ' |