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:
parent
9d874c5cd6
commit
c738ac2f6e
|
@ -1,13 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
ARCH=`uname -m`
|
||||||
|
|
||||||
if [ ! -e "./compile.sh" ]; then
|
if [ ! -e "./compile.sh" ]; then
|
||||||
echo "You must run compile.sh in its own direcotry : ./compile.sh"
|
echo "You must run compile.sh in its own direcotry : ./compile.sh"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "build" ]; then
|
if [ ! -d "$ARCH/build" ]; then
|
||||||
echo "Creating build directory"
|
echo "Creating build directory"
|
||||||
mkdir build
|
mkdir -p $ARCH/build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd build && cmake .. && make DESTDIR=.. -j2 install
|
cd $ARCH/build && cmake ../.. && make DESTDIR=.. -j2 install
|
||||||
|
|
Loading…
Reference in New Issue