cmake $srcPath$flag1 -G"CodeBlocks - Unix Makefiles" -DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1|| usageDie "cmake failed in `pwd`. See any messages above for more information. Run ./install-minetest-build-deps.sh if you did not."
echo
echo"Running make..."
make -j$(nproc)|| customDie"make failed. See any messages above for more information. Run ./install-minetest-build-deps.sh if you did not."
make -j$(nproc)|| customExit"make failed. See any messages above for more information. Run ./install-minetest-build-deps.sh if you did not."
# The git repo ONLY includes the core engine: http://localhost:3000/minetest/minetest.git
# The build kit should be used, & has "patched Irrlicht, the new LuaJit, built-in LevelDB and Snappy support, Bucket Game, Bucket City, Wonder World, the schems collection, and other pieces"
customDie(){
customExit(){
echo
echo"ERROR:"
echo"$1"
@ -10,7 +10,7 @@ customDie() {
echo
}
cd webapp || customDie"You must run this script from the directory containing the webapp directory."
cd webapp || customExit"You must run this script from the directory containing the webapp directory."
# echo "WARNING: not enabling columns in $MTMOD_DEST_PATH/init.lua since already patched as indicated by the presence of '$MTMOD_DEST_PATH/columns_enabled' flag file."
# fi
#else
# customDie "FAILED to patch lapis since no $MTMOD_DEST_PATH/init.lua"
# customExit "FAILED to patch lapis since no $MTMOD_DEST_PATH/init.lua"
#fi
echo"not installing helicopter--crashes 0.4.14-git, but was updated on 2017-06-08 and was not tested since then"
@ -708,7 +708,7 @@ else
if[ -d "$MT_MYGAME_MODS_PATH/farming"];then
echo" [ + ] reinstalled minetest_game farming."
else
customDie"ERROR: failed to install $USR_SHARE_MINETEST/games/$mtgame_name/mods/farming to $MT_MYGAME_MODS_PATH/farming, so cannot continue."
customExit"ERROR: failed to install $USR_SHARE_MINETEST/games/$mtgame_name/mods/farming to $MT_MYGAME_MODS_PATH/farming, so cannot continue."