forked from github/server
there is only one repository for tolua now
This commit is contained in:
parent
d1ec2bbb5c
commit
a67246ba86
|
@ -78,21 +78,16 @@ fi
|
|||
|
||||
DEST=$(dirname $ROOT)/server
|
||||
|
||||
TOLUA_VERSION="5.2"
|
||||
LUA_INCLUDE=/usr/include
|
||||
LUA_DIR=/usr
|
||||
if [ -d /usr/local/include/lua ]; then
|
||||
TOLUA_VERSION="5.2"
|
||||
LUA_INCLUDE=/usr/local/include/lua
|
||||
elif [ -d /usr/include/lua5.2 ]; then
|
||||
TOLUA_VERSION="5.2"
|
||||
LUA_INCLUDE=/usr/include/lua5.2
|
||||
elif [ -d /usr/include/lua5.1 ]; then
|
||||
TOLUA_VERSION="5.1"
|
||||
LUA_INCLUDE=/usr/include/lua5.1
|
||||
elif [ -d /usr/local/include/lua5.1 ]; then
|
||||
LUA_DIR=/usr/local
|
||||
TOLUA_VERSION="5.1"
|
||||
LUA_INCLUDE=/usr/local/include/lua5.1
|
||||
fi
|
||||
|
||||
|
@ -115,8 +110,8 @@ if [ "$HAVE_TOLUA" = "0" ] || [ -z $path ] ; then
|
|||
echo "tolua is not installed, building from source"
|
||||
cd $ROOT
|
||||
if [ ! -d tolua/include ]; then
|
||||
echo "fetching tolua ${TOLUA_VERSION} from github..."
|
||||
git clone https://github.com/ennorehling/tolua-${TOLUA_VERSION}.git tolua
|
||||
echo "fetching tolua from github..."
|
||||
git clone https://github.com/ennorehling/tolua.git tolua
|
||||
fi
|
||||
echo "building tolua..."
|
||||
cd tolua
|
||||
|
|
Loading…
Reference in New Issue