From 8ffc6197460f584f359fd59327f53b64cd8a7269 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Thu, 21 Feb 2008 19:36:45 -0600 Subject: [PATCH] add misc/target --- misc/target | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 misc/target diff --git a/misc/target b/misc/target new file mode 100755 index 0000000000..b2b04dfc1c --- /dev/null +++ b/misc/target @@ -0,0 +1,16 @@ +#!/bin/bash + +if [ \( `uname -s` = Darwin \) -a \( `uname -p` = powerpc \) ] +then + echo macosx-ppc +elif [ `uname -s` = Darwin ] +then + echo macosx-x86-`./misc/wordsize` +elif [ \( `uname -s` = Linux \) -a \( `uname -m` = i686 \) ] +then + echo linux-x86-`./misc/wordsize` +elif [ \( `uname -o` = Cygwin \) -a \( `uname -m` = i686 \) ] +then + echo winnt-x86-`./misc/wordsize` +fi +