forked from github/server
change how lua version is determined to work with my mac
This commit is contained in:
parent
95872aabb8
commit
4fc4e8a588
|
@ -46,9 +46,9 @@ if [ "$HAVE_TOLUA" = "0" ] || [ -z $path ] ; then
|
||||||
echo "tolua is not installed, building from source"
|
echo "tolua is not installed, building from source"
|
||||||
cd $ROOT
|
cd $ROOT
|
||||||
if [ ! -d tolua ]; then
|
if [ ! -d tolua ]; then
|
||||||
LUA_VERSION="5.2"
|
|
||||||
if [ ! -d /usr/include/lua5.2 ] ; then
|
|
||||||
LUA_VERSION="5.1"
|
LUA_VERSION="5.1"
|
||||||
|
if [ -d /usr/include/lua5.2 ] || [ -d /usr/local/include/lua5.2 ]; then
|
||||||
|
LUA_VERSION="5.2"
|
||||||
fi
|
fi
|
||||||
echo "fetching tolua ${LUA_VERSION} from github..."
|
echo "fetching tolua ${LUA_VERSION} from github..."
|
||||||
git clone https://github.com/ennorehling/tolua-${LUA_VERSION}.git tolua
|
git clone https://github.com/ennorehling/tolua-${LUA_VERSION}.git tolua
|
||||||
|
|
|
@ -18,7 +18,6 @@ cd tests
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
[ -z $BUILD ] && BUILD=Debug ; export BUILD
|
[ -z $BUILD ] && BUILD=Debug ; export BUILD
|
||||||
cmake --version
|
|
||||||
s/cmake-init
|
s/cmake-init
|
||||||
s/build
|
s/build
|
||||||
cd $ROOT
|
cd $ROOT
|
||||||
|
|
Loading…
Reference in New Issue