diff options
author | rsc <devnull@localhost> | 2004-04-21 05:49:52 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-21 05:49:52 +0000 |
commit | 7ac9b0e140bed0b34dc88674b3098caa5e193acf (patch) | |
tree | 10ca836d5da9f3b80662664bfb1c79516596ed75 | |
parent | 0d6c3c240826f43de3937071769a531821c5b4a7 (diff) | |
download | plan9port-7ac9b0e140bed0b34dc88674b3098caa5e193acf.tar.gz plan9port-7ac9b0e140bed0b34dc88674b3098caa5e193acf.tar.bz2 plan9port-7ac9b0e140bed0b34dc88674b3098caa5e193acf.zip |
make scripts work with more shells,
use current variable names.
-rw-r--r-- | src/libmp/mkfile | 2 | ||||
-rw-r--r-- | src/libmp/port/mkfile | 2 | ||||
-rw-r--r-- | src/libmp/port/reduce | 6 | ||||
-rw-r--r-- | src/libsec/mkfile | 2 | ||||
-rw-r--r-- | src/libsec/port/mkfile | 4 |
5 files changed, 10 insertions, 6 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" ' ' diff --git a/src/libsec/mkfile b/src/libsec/mkfile index aab57462..e3f1aa69 100644 --- a/src/libsec/mkfile +++ b/src/libsec/mkfile @@ -2,6 +2,6 @@ DIRS=\ port\ -# $systype-$objtype\ + $OBJTYPE\ <$PLAN9/src/mkdirs diff --git a/src/libsec/port/mkfile b/src/libsec/port/mkfile index ca37b0b4..63fd5f96 100644 --- a/src/libsec/port/mkfile +++ b/src/libsec/port/mkfile @@ -2,7 +2,7 @@ LIB=libsec.a -OFILES=\ +ALLOFILES=\ aes.$O\ blowfish.$O\ decodepem.$O\ @@ -54,6 +54,8 @@ OFILES=\ tlshand.$O\ x509.$O\ +OFILES=`{sh ./reduce $O $OBJTYPE $ALLOFILES} + HFILES=$PLAN9/include/libsec.h <$PLAN9/src/mksyslib |