forked from github/server
update tolua repo if needed
This commit is contained in:
parent
a67246ba86
commit
7fae809aa0
1 changed files with 12 additions and 10 deletions
22
s/cmake-init
22
s/cmake-init
|
@ -107,20 +107,22 @@ HEREDOC
|
||||||
|
|
||||||
path="$(which tolua)"
|
path="$(which tolua)"
|
||||||
if [ "$HAVE_TOLUA" = "0" ] || [ -z $path ] ; then
|
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/include ]; then
|
if [ ! -d tolua/include ]; then
|
||||||
echo "fetching tolua from github..."
|
echo "fetching tolua from github..."
|
||||||
git clone https://github.com/ennorehling/tolua.git tolua
|
git clone https://github.com/ennorehling/tolua.git tolua
|
||||||
fi
|
|
||||||
echo "building tolua..."
|
|
||||||
cd tolua
|
cd tolua
|
||||||
make
|
else
|
||||||
cd -
|
cd tolua
|
||||||
|
git pull --rebase
|
||||||
|
fi
|
||||||
|
echo "building tolua..."
|
||||||
|
make
|
||||||
|
cd -
|
||||||
cat >> $BUILD/config.cmake <<TOLUA
|
cat >> $BUILD/config.cmake <<TOLUA
|
||||||
SET(PC_TOLUA_DIR "$ROOT/tolua" CACHE PATH "tolua root")
|
SET(PC_TOLUA_DIR "$ROOT/tolua" CACHE PATH "tolua root")
|
||||||
TOLUA
|
TOLUA
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "tolua is $path"
|
echo "tolua is $path"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue