comparison bin/yc @ 121:789da8e322e1

Guess the architecture, and minor fixes
author Chris Cannam
date Thu, 18 Apr 2013 17:03:53 +0100
parents 44d745823a75
children 0a856c4d5338
comparison
equal deleted inserted replaced
117:098b4efde5b1 121:789da8e322e1
1 #!/bin/sh 1 #!/bin/sh
2 2
3 ARCH=linux32 3 ARCH=unknown
4
5 case `uname -a` in
6 Linux*x86_64*) ARCH=linux64;;
7 Linux*) ARCH=linux32;;
8 Darwin*) ARCH=osx;;
9 CYG*) ARCH=win32;;
10 MINGW*) ARCH=win32;;
11 esac
12
13 if [ "$ARCH" == "unknown" ]; then
14 echo "Failed to guess architecture for native libraries, sorry!" 1>&2
15 exit 2
16 fi
4 17
5 YLDIR=`dirname $0`/.. 18 YLDIR=`dirname $0`/..
6 19
7 EXTDIR=$YLDIR/ext 20 EXTDIR=$YLDIR/ext
8 JARDIR=$EXTDIR/jar 21 JARDIR=$EXTDIR/jar