diff options
author | Russ Cox <rsc@swtch.com> | 2009-07-16 03:30:22 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2009-07-16 03:30:22 -0400 |
commit | 9f8b1dc7fa6c53b7340ea5179f3d9e4310cd897d (patch) | |
tree | e8eff134d730d19f2cea4f16d909a0420ce39fdb /dist/buildmk | |
parent | a4980b3957ee745dfd1560f531ce5da1b3e41343 (diff) | |
download | plan9port-9f8b1dc7fa6c53b7340ea5179f3d9e4310cd897d.tar.gz plan9port-9f8b1dc7fa6c53b7340ea5179f3d9e4310cd897d.tar.bz2 plan9port-9f8b1dc7fa6c53b7340ea5179f3d9e4310cd897d.zip |
build: work around broken Linux uname -p
fixes #8 http://bitbucket.org/rsc/plan9port/issue/8/
http://groups.google.com/group/plan9port-dev/t/8d1a2362dde4f137
http://codereview.appspot.com/95058
Diffstat (limited to 'dist/buildmk')
-rwxr-xr-x | dist/buildmk | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/dist/buildmk b/dist/buildmk index 2fe14ccf..cee62ba6 100755 --- a/dist/buildmk +++ b/dist/buildmk @@ -2,17 +2,16 @@ # run this in the src directory SYSNAME=`uname` export SYSNAME -OBJTYPE=`uname -p | sed ' - s;i.86;386;; - s;i86pc;386;; - s;amd64;x86_64;; - s;/.*;;; s; ;;g; - s;armv.*;arm;g; - s;powerpc;power;g; - s;PowerMacintosh;power;g; - s;macppc;power;g; - s;ppc64;power;g; - s;ppc;power;g; +OBJTYPE=`uname -m -p | sed ' + s;.*i[3-6]86.*;386;; + s;.*i86pc.*;386;; + s;.*amd64.*;x86_64;; + s;.*x86_64.*;x86_64;; + s;.*armv.*;arm;g; + s;.*powerpc.*;power;g; + s;.*PowerMacintosh.*;power;g; + s;.*macppc.*;power;g; + s;.*ppc64.*;power;g; + s;.*ppc.*;power;g; '` export OBJTYPE sh -x mkmk.sh - |