Browse Source

fix missing mods in ENLIVEN-minetest_game

master
poikilos 5 years ago
committed by Jacob Gustafson
parent
commit
4561620b75
  1. 7
      minetestenv.rc
  2. 28
      utilities/deprecated/install-ENLIVEN-minetest_game.sh

7
minetestenv.rc

@ -158,6 +158,13 @@ show_changes="true"
#fi #fi
PATCHES_PATH="$REPO_PATH/patches" PATCHES_PATH="$REPO_PATH/patches"
if [ ! -d "$PATCHES_PATH" ]; then
if [ -d "$HOME/git/EnlivenMinetest" ]; then
REPO_PATH=$HOME/git/EnlivenMinetest
PATCHES_PATH="$REPO_PATH/patches"
fi
fi
echo "PATCHES_PATH: $PATCHES_PATH" echo "PATCHES_PATH: $PATCHES_PATH"
if [ ! -d "$PATCHES_PATH" ]; then if [ ! -d "$PATCHES_PATH" ]; then

28
utilities/deprecated/install-ENLIVEN-minetest_game.sh

@ -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

Loading…
Cancel
Save