From c738ac2f6e5cdeabc45f65c94c8924e62ff8454f Mon Sep 17 00:00:00 2001 From: The Chams Project Date: Thu, 4 Mar 2010 13:36:02 +0000 Subject: [PATCH] New version of compiling script to support 32bits and 64 bits achitectures on the same account (for chams network install) --- bootstrap/easyChams/compile.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bootstrap/easyChams/compile.sh b/bootstrap/easyChams/compile.sh index a4ab8a31..bcac6239 100755 --- a/bootstrap/easyChams/compile.sh +++ b/bootstrap/easyChams/compile.sh @@ -1,13 +1,14 @@ #!/bin/bash +ARCH=`uname -m` if [ ! -e "./compile.sh" ]; then echo "You must run compile.sh in its own direcotry : ./compile.sh" exit 1 fi -if [ ! -d "build" ]; then +if [ ! -d "$ARCH/build" ]; then echo "Creating build directory" - mkdir build + mkdir -p $ARCH/build fi -cd build && cmake .. && make DESTDIR=.. -j2 install +cd $ARCH/build && cmake ../.. && make DESTDIR=.. -j2 install