mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
buildmk: sync $OBJTYPE with src/mkhdr
fixes #4 http://bitbucket.org/rsc/plan9port/issue/4 http://codereview.appspot.com/95042
This commit is contained in:
parent
cb92a1b41c
commit
9bea9069bf
2 changed files with 9 additions and 7 deletions
5
dist/buildmk
vendored
5
dist/buildmk
vendored
|
@ -7,11 +7,12 @@ OBJTYPE=`uname -p | sed '
|
||||||
s;i86pc;386;;
|
s;i86pc;386;;
|
||||||
s;amd64;x86_64;;
|
s;amd64;x86_64;;
|
||||||
s;/.*;;; s; ;;g;
|
s;/.*;;; s; ;;g;
|
||||||
s;armv4l;arm;g;
|
s;armv.*;arm;g;
|
||||||
s;powerpc;power;g;
|
s;powerpc;power;g;
|
||||||
|
s;PowerMacintosh;power;g;
|
||||||
s;macppc;power;g;
|
s;macppc;power;g;
|
||||||
s;ppc64;power;g;
|
s;ppc64;power;g;
|
||||||
s;ppc;power;g;
|
s;ppc;power;g;
|
||||||
'` export OBJTYPE
|
'` export OBJTYPE
|
||||||
sh -x mkmk.sh
|
sh -x mkmk.sh
|
||||||
|
|
||||||
|
|
11
src/mkhdr
11
src/mkhdr
|
@ -1,16 +1,17 @@
|
||||||
|
# if you change this, also edit ../dist/buildmk
|
||||||
SYSNAME=`uname`
|
SYSNAME=`uname`
|
||||||
# objtype rules also in Makefile
|
OBJTYPE=`uname -p | sed '
|
||||||
OBJTYPE=`uname -m | sed '
|
|
||||||
s;i.86;386;;
|
s;i.86;386;;
|
||||||
s;i86pc;386;;
|
s;i86pc;386;;
|
||||||
s;amd64;x86_64;;
|
s;amd64;x86_64;;
|
||||||
s;/.*;;;
|
s;/.*;;; s; ;;g;
|
||||||
s; ;;g;
|
|
||||||
s;armv.*;arm;g;
|
s;armv.*;arm;g;
|
||||||
|
s;powerpc;power;g;
|
||||||
s;PowerMacintosh;power;g;
|
s;PowerMacintosh;power;g;
|
||||||
s;macppc;power;g;
|
s;macppc;power;g;
|
||||||
s;ppc64;power;g;
|
s;ppc64;power;g;
|
||||||
s;ppc;power;g'`
|
s;ppc;power;g;
|
||||||
|
'`
|
||||||
|
|
||||||
BIN=$PLAN9/bin
|
BIN=$PLAN9/bin
|
||||||
LIBDIR=$PLAN9/lib
|
LIBDIR=$PLAN9/lib
|
||||||
|
|
Loading…
Reference in a new issue