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)"
|
||||
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 from github..."
|
||||
git clone https://github.com/ennorehling/tolua.git tolua
|
||||
fi
|
||||
echo "building tolua..."
|
||||
echo "tolua is not installed, building from source"
|
||||
cd $ROOT
|
||||
if [ ! -d tolua/include ]; then
|
||||
echo "fetching tolua from github..."
|
||||
git clone https://github.com/ennorehling/tolua.git tolua
|
||||
cd tolua
|
||||
make
|
||||
cd -
|
||||
else
|
||||
cd tolua
|
||||
git pull --rebase
|
||||
fi
|
||||
echo "building tolua..."
|
||||
make
|
||||
cd -
|
||||
cat >> $BUILD/config.cmake <<TOLUA
|
||||
SET(PC_TOLUA_DIR "$ROOT/tolua" CACHE PATH "tolua root")
|
||||
TOLUA
|
||||
|
||||
else
|
||||
echo "tolua is $path"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue