tbuildmk: sync $OBJTYPE with src/mkhdr - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 9bea9069bf3bc282c6b7d129926d4a0f1b40c66b
 (DIR) parent cb92a1b41c1e5bd0686866c123304df47e8cca6a
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Wed, 15 Jul 2009 02:40:34 -0400
       
       buildmk: sync $OBJTYPE with src/mkhdr
       
       fixes #4 http://bitbucket.org/rsc/plan9port/issue/4
       
       http://codereview.appspot.com/95042
       
       Diffstat:
         M dist/buildmk                        |       5 +++--
         M src/mkhdr                           |      11 ++++++-----
       
       2 files changed, 9 insertions(+), 7 deletions(-)
       ---
 (DIR) diff --git a/dist/buildmk b/dist/buildmk
       t@@ -7,11 +7,12 @@ OBJTYPE=`uname -p | sed '
                s;i86pc;386;;
                s;amd64;x86_64;;
                s;/.*;;; s; ;;g;
       -        s;armv4l;arm;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;
       -        '` export OBJTYPE
       +'` export OBJTYPE
        sh -x mkmk.sh
        
 (DIR) diff --git a/src/mkhdr b/src/mkhdr
       t@@ -1,16 +1,17 @@
       +# if you change this, also edit ../dist/buildmk
        SYSNAME=`uname`
       -# objtype rules also in Makefile
       -OBJTYPE=`uname -m | sed '
       +OBJTYPE=`uname -p | sed '
                s;i.86;386;;
                s;i86pc;386;;
                s;amd64;x86_64;;
       -        s;/.*;;;
       -        s; ;;g;
       +        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'`
       +        s;ppc;power;g;
       +'`
        
        BIN=$PLAN9/bin
        LIBDIR=$PLAN9/lib