|
|
@ -47,6 +47,7 @@ if [ ! -f minetestenv.rc ]; then |
|
|
|
cd "$HOME/GitHub/EnlivenMinetest" |
|
|
|
fi |
|
|
|
fi |
|
|
|
EnlivenMinetest_dir="`pwd`" |
|
|
|
if [ ! -f minetestenv.rc ]; then |
|
|
|
# NOTE: customDie is not defined until after this clause. |
|
|
|
echo "ERROR: Nothing done since missing minetestenv.rc (must be in same directory or '$HOME/git/EnlivenMinetest' or '`pwd`')." |
|
|
@ -96,7 +97,7 @@ if [ ! -f "`command -v minetestmapper`" ]; then |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
cd ~/Downloads |
|
|
|
pushd ~/Downloads |
|
|
|
if [ -d minetestmapper ]; then |
|
|
|
rm -Rf minetestmapper |
|
|
|
fi |
|
|
@ -110,6 +111,7 @@ if [ ! -f "`command -v minetestmapper`" ]; then |
|
|
|
else |
|
|
|
echo "FAILED to compile minetestmapper--python version will be used" |
|
|
|
fi |
|
|
|
popd |
|
|
|
fi |
|
|
|
|
|
|
|
if [ -d /tmp/local_mts_user ]; then |
|
|
@ -144,8 +146,6 @@ if [ -f "$MT_MYWORLD_DIR/world.mt" ]; then |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#process conf file (account for spaces around equal sign and variable names containing name of other variable name) |
|
|
|
shopt -s extglob |
|
|
|
configfile="$WORLD_MT_PATH" # set the actual path name of your (DOS or Unix) config file |
|
|
@ -215,12 +215,16 @@ if [ ! -d "$MT_MYGAME_DIR/" ]; then |
|
|
|
customDie "ERROR: failed to create $MT_MYGAME_DIR, so cannot continue." |
|
|
|
fi |
|
|
|
#sudo cp -R $USR_SHARE_MINETEST/games/$mtgame_name/mods/* "$MT_MYGAME_DIR/mods/" |
|
|
|
echo "Copying $MT_MINETEST_GAME_PATH to $MT_MYGAME_DIR" |
|
|
|
if [ -f "`command -v rsync`" ]; then |
|
|
|
rsync -Rf $MT_MINETEST_GAME_PATH/* "$MT_MYGAME_DIR/" |
|
|
|
rsync -rt $MT_MINETEST_GAME_PATH/ "$MT_MYGAME_DIR" || echo "rsync -rt $MT_MINETEST_GAME_PATH/ \"$MT_MYGAME_DIR\" # FAILED" >> "$err_txt" |
|
|
|
else |
|
|
|
cp -Rf $MT_MINETEST_GAME_PATH/* "$MT_MYGAME_DIR/" |
|
|
|
cp -Rf $MT_MINETEST_GAME_PATH/* "$MT_MYGAME_DIR/" || echo "cp -Rf $MT_MINETEST_GAME_PATH/* \"$MT_MYGAME_DIR/\" # FAILED" >> "$err_txt" |
|
|
|
fi |
|
|
|
|
|
|
|
echo "2..." |
|
|
|
sleep 1 |
|
|
|
echo "1..." |
|
|
|
sleep 1 |
|
|
|
|
|
|
|
#sudo su - |
|
|
|
#WRITEABLE_MINETEST_CONF=$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/minetest.conf |
|
|
@ -956,15 +960,7 @@ fi |
|
|
|
echo "# cp -Rf $PATCHES_PATH/mods-stopgap-minetest_game/* $MT_MYGAME_MODS_PATH/" |
|
|
|
#echo "rm -Rf $MT_MYGAME_MODS_PATH/1.nonworking # leftovers from deprecated ENLIVEN installer" |
|
|
|
else |
|
|
|
echo "did not find $PATCHES_PATH, so skipped automatic patching which is partially implemented" |
|
|
|
echo "continuing anyway unless Ctrl-C is pressed..." |
|
|
|
echo 1 |
|
|
|
echo "3..." |
|
|
|
echo 1 |
|
|
|
echo "2..." |
|
|
|
echo 1 |
|
|
|
echo "1..." |
|
|
|
echo 1 |
|
|
|
customDie "did not find $PATCHES_PATH" |
|
|
|
fi |
|
|
|
echo |
|
|
|
if [ "$version_0_5_enable" != "true" ]; then |
|
|
@ -1086,8 +1082,10 @@ echo "If any uncommented commands appear below, consider running them if repairs |
|
|
|
echo |
|
|
|
cat $err_txt |
|
|
|
if [ -d "$HOME/.minetest/games/ENLIVEN" ]; then |
|
|
|
if [ "$MT_MYGAME_DIR" != "$HOME/.minetest/games/ENLIVEN" ]; then |
|
|
|
echo "rsync -rt --delete \"$MT_MYGAME_DIR/\" \"$HOME/.minetest/games/ENLIVEN\"" |
|
|
|
fi |
|
|
|
fi |
|
|
|
if [ -d "$SYSTEM_MT_GAMES_DIR/$MT_MYGAME_NAME" ]; then |
|
|
|
echo "sudo rm -Rf \"$SYSTEM_MT_GAMES_DIR/$MT_MYGAME_NAME/\" # deprecated location--see '$MT_MYGAME_DIR' instead." |
|
|
|
fi |
|
|
|