2005-11-29 01:15:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
# run this in the src directory
|
|
|
|
|
SYSNAME=`uname` export SYSNAME
|
2009-07-16 03:30:22 -04:00
|
|
|
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;
|
2009-07-17 02:05:02 -04:00
|
|
|
s;.*alpha.*;alpha;g;
|
2010-04-09 15:28:16 -07:00
|
|
|
s;.*sun4u.*;sun4u;g;
|
2009-07-15 02:40:34 -04:00
|
|
|
'` export OBJTYPE
|
2005-11-29 01:15:02 +00:00
|
|
|
sh -x mkmk.sh
|