2005-11-29 01:15:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# run this in the src directory
|
|
|
|
SYSNAME=`uname` export SYSNAME
|
2011-05-18 17:21:40 +00:00
|
|
|
OBJTYPE=`(uname -m -p 2>/dev/null || uname -m) | sed '
|
2009-07-16 07:30:22 +00:00
|
|
|
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;
|
2011-10-23 21:55:23 +00:00
|
|
|
s;.*Power.Macintosh.*;power;g;
|
2009-07-16 07:30:22 +00:00
|
|
|
s;.*macppc.*;power;g;
|
|
|
|
s;.*ppc64.*;power;g;
|
|
|
|
s;.*ppc.*;power;g;
|
2009-07-17 06:05:02 +00:00
|
|
|
s;.*alpha.*;alpha;g;
|
2010-04-09 22:28:16 +00:00
|
|
|
s;.*sun4u.*;sun4u;g;
|
2009-07-15 06:40:34 +00:00
|
|
|
'` export OBJTYPE
|
2005-11-29 01:15:02 +00:00
|
|
|
sh -x mkmk.sh
|