factor/misc/target

24 lines
554 B
Plaintext
Raw Normal View History

2008-03-14 02:36:30 -04:00
#!/bin/sh
2008-02-21 20:36:45 -05:00
2008-03-14 02:36:30 -04:00
if [ \( `uname -s ` = FreeBSD \) -a \( `uname -p` = i386 \) ]
then
echo freebsd-x86-32
elif [ \( `uname -s` = Darwin \) -a \( `uname -p` = powerpc \) ]
2008-02-21 20:36:45 -05:00
then
echo macosx-ppc
elif [ `uname -s` = Darwin ]
then
echo macosx-x86-`./misc/wordsize`
elif [ \( `uname -s` = Linux \) -a \( `uname -m` = i686 \) ]
then
2008-02-23 14:23:24 -05:00
echo linux-x86-32
elif [ \( `uname -s` = Linux \) -a \( `uname -m` = x86_64 \) ]
then
echo linux-x86-64
2008-02-21 20:36:45 -05:00
elif [ \( `uname -o` = Cygwin \) -a \( `uname -m` = i686 \) ]
then
echo winnt-x86-`./misc/wordsize`
else
echo help
2008-03-14 02:36:30 -04:00
fi