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