2011-05-07 07:48:21 +00:00
|
|
|
#!/bin/bash
|
2010-12-11 07:24:03 +00:00
|
|
|
|
2011-05-24 22:51:45 +00:00
|
|
|
NUMCORES=`cat /proc/cpuinfo | grep -cE '^processor'`
|
|
|
|
|
2010-12-16 10:52:34 +00:00
|
|
|
mkdir -p build
|
2010-12-11 07:24:03 +00:00
|
|
|
cd build
|
2010-12-11 12:53:38 +00:00
|
|
|
|
2011-05-07 07:48:21 +00:00
|
|
|
[[ -f "CMakeCache.txt" ]] && rm -f "CMakeCache.txt"
|
|
|
|
# This is for regular developers and used by our installer
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX= -DWANT_STATIC_LIBS=ON ..
|
2011-05-24 22:51:45 +00:00
|
|
|
make -j$NUMCORES
|
2010-12-11 07:24:03 +00:00
|
|
|
|
2010-12-16 10:52:34 +00:00
|
|
|
cd ..
|
2011-05-03 04:27:37 +00:00
|
|
|
echo 'You may now launch MegaGlest from this directory like this:'
|
2011-05-05 03:31:18 +00:00
|
|
|
echo 'mk/linux/megaglest --ini-path=mk/linux/ --data-path=mk/linux/'
|
2011-05-03 04:27:37 +00:00
|
|
|
echo 'or from within the build directory:'
|
2011-05-05 03:31:18 +00:00
|
|
|
echo '../mk/linux/megaglest --ini-path=../mk/linux/ --data-path=../mk/linux/'
|