New version of compiling script to support 32bits and 64 bits achitectures on the same account (for chams network install)

This commit is contained in:
The Chams Project 2010-03-04 13:36:02 +00:00
parent 9d874c5cd6
commit c738ac2f6e
1 changed files with 4 additions and 3 deletions

View File

@ -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