git clone https://github.com/MultiCraft/MultiCraft.git || customDie "Cannot clone MultiCraft from `pwd`"
git clone https://github.com/MultiCraft/MultiCraft.git || customDie "Cannot clone MultiCraft from `pwd`"
cd MultiCraft || customDie "Cannot cd MultiCraft from `pwd`"
cd MultiCraft || customDie "Cannot cd MultiCraft from `pwd`"
else
else
cd MultiCraft || customDie "Cannot cd MultiCraft from `pwd`"
cd MultiCraft || customDie "Cannot cd MultiCraft from `pwd`"
git pull ||customDie "Cannot pull MultiCraft from `pwd`"
git pull ||echo"WARNING: Cannot pull MultiCraft from `pwd`"
fi
fi
else
else
if[ ! -f "$goodFlagFile"];then
if[ ! -f "$goodFlagFile"];then
@ -33,8 +38,13 @@ srcPath=.
flag1="-DOpenGL_GL_PREFERENCE=GLVND"
flag1="-DOpenGL_GL_PREFERENCE=GLVND"
echo
echo
echo"Running cmake srcPath..."
echo"Running cmake srcPath..."
cmake $srcPath$flag1|| customDie "cmake failed. See any messages above for more information."
cmake $srcPath$flag1-DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1|| customDie "cmake failed. See any messages above for more information. Run ./install-minetest-build-deps.sh if you did not."
echo
echo
echo"Running make..."
echo"Running make..."
make
make -j$(nproc)|| customDie "make failed. See any messages above for more information. Run ./install-minetest-build-deps.sh if you did not."