diff options
author | wkj <devnull@localhost> | 2004-04-21 04:45:31 +0000 |
---|---|---|
committer | wkj <devnull@localhost> | 2004-04-21 04:45:31 +0000 |
commit | ac0e2db600593d5b30550453b78874bfa0611751 (patch) | |
tree | b5532ae46d9dae89a4ba22e30fb7ff15e4aa173b /src/libmp/port | |
parent | f2a700e22af3cf792837935f8e8ed42d533d552e (diff) | |
download | plan9port-ac0e2db600593d5b30550453b78874bfa0611751.tar.gz plan9port-ac0e2db600593d5b30550453b78874bfa0611751.tar.bz2 plan9port-ac0e2db600593d5b30550453b78874bfa0611751.zip |
Add basic libmp support for the x86.
Diffstat (limited to 'src/libmp/port')
-rw-r--r-- | src/libmp/port/mkfile | 8 | ||||
-rw-r--r-- | src/libmp/port/reduce | 14 |
2 files changed, 8 insertions, 14 deletions
diff --git a/src/libmp/port/mkfile b/src/libmp/port/mkfile index a9176dd3..682c6763 100644 --- a/src/libmp/port/mkfile +++ b/src/libmp/port/mkfile @@ -33,10 +33,9 @@ FILES=\ mptov\ mptouv\ -OFILES=${FILES:%=%.$O} - +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\ @@ -44,3 +43,6 @@ HFILES=\ dat.h\ <$PLAN9/src/mksyslib + +poot: + echo $OFILES diff --git a/src/libmp/port/reduce b/src/libmp/port/reduce index a857a28c..b3980756 100644 --- a/src/libmp/port/reduce +++ b/src/libmp/port/reduce @@ -3,14 +3,6 @@ shift objtype=$1 shift -ls -p ../$objtype/*.[cs] >[2]/dev/null | sed 's/..$//' > /tmp/reduce.$pid -# -# if empty directory, just return the input files -# -if (! ~ $status '|') { - echo $* - rm /tmp/reduce.$pid - exit 0 -} -echo $* | tr ' ' \012 | grep -v -f /tmp/reduce.$pid | tr \012 ' ' -rm /tmp/reduce.$pid +reduce="("`ls -p ../$objtype/*.[cs] 2>/dev/null | sed 's/..$//' | sed 's/^.*\///' | tr '\012' '|' | sed 's/.$//'`")" + +echo $* | tr ' ' '\012' | egrep -v $reduce | tr \012 ' ' |