update tolua repo if needed

This commit is contained in:
Enno Rehling 2021-02-14 09:09:09 +01:00 committed by Enno Rehling
parent a67246ba86
commit 7fae809aa0
1 changed files with 12 additions and 10 deletions

View File

@ -112,15 +112,17 @@ if [ "$HAVE_TOLUA" = "0" ] || [ -z $path ] ; then
if [ ! -d tolua/include ]; then
echo "fetching tolua from github..."
git clone https://github.com/ennorehling/tolua.git tolua
cd tolua
else
cd tolua
git pull --rebase
fi
echo "building tolua..."
cd 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