Blob
- Date:
- Message:
- all: sync and dedup the creation of the SYSNAME and OBJTYPE env vars (#321) This should prevent the issues of dist/buildmk and src/mkhdr getting out of synchronization yet again. I also add a rule for arm64 to the OBJTYPE sed command. Fixes #243 Fixes #320 Change-Id: I60f69a1f32b5ed5ae5ac8a1659c38e29debed005
- Actions:
- History | Blame | Raw File
1 SYSNAME=`uname`2 OBJTYPE=`(uname -m -p 2>/dev/null || uname -m) | sed '3 s;.*i[3-6]86.*;386;;4 s;.*i86pc.*;386;;5 s;.*amd64.*;x86_64;;6 s;.*x86_64.*;x86_64;;7 s;.*armv.*;arm;g;8 s;.*powerpc.*;power;g;9 s;.*PowerMacintosh.*;power;g;10 s;.*Power.Macintosh.*;power;g;11 s;.*macppc.*;power;g;12 s;.*mips.*;mips;g;13 s;.*ppc64.*;power;g;14 s;.*ppc.*;power;g;15 s;.*alpha.*;alpha;g;16 s;.*sun4u.*;sun4u;g;17 s;.*aarch64.*;arm64;18 s;.*arm64.*;arm64;19 '`