|
@ -10,7 +10,25 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# * Git version uses /home/*/minetest/games and /usr/local/share/minetest/games but the latter is used for minetestserver (minetest-server package) |
|
|
# * Git version uses /home/*/minetest/games and /usr/local/share/minetest/games but the latter is used for minetestserver (minetest-server package) |
|
|
|
|
|
# Known Issues: |
|
|
|
|
|
# * Must do the following if runs twice (run a third time to fix it): |
|
|
|
|
|
if [ -d /usr/share/minetest/games/ENLIVEN/mods/3d_armor/minetest-3d_armor-master ]; then |
|
|
|
|
|
rm -Rf /usr/share/minetest/games/ENLIVEN/mods/3d_armor |
|
|
|
|
|
fi |
|
|
|
|
|
if [ -d /usr/share/minetest/games/ENLIVEN/mods/3d_armor/minetest-3d_armor-master ]; then |
|
|
|
|
|
rm -Rf /usr/share/minetest/games/ENLIVEN/mods/3d_armor |
|
|
|
|
|
fi |
|
|
|
|
|
if [ -d /usr/share/minetest/games/ENLIVEN/mods/plantlife_modpack/plantlife_modpack-master ]; then |
|
|
|
|
|
rm -Rf /usr/share/minetest/games/ENLIVEN/mods/plantlife_modpack |
|
|
|
|
|
fi |
|
|
|
|
|
Uberi=`ls /usr/share/minetest/games/ENLIVEN/mods/worldedit | grep Uberi` |
|
|
|
|
|
if [ ! -z "$Uberi" ]; then |
|
|
|
|
|
# /usr/share/minetest/games/ENLIVEN/mods/worldedit/Uberi-Minetest-WorldEdit-3322ef9 |
|
|
|
|
|
rm -Rf /usr/share/minetest/games/ENLIVEN/mods/worldedit |
|
|
|
|
|
fi |
|
|
|
|
|
if [ -d /usr/share/minetest/games/ENLIVEN/mods/mesecons/mesecons-master ]; then |
|
|
|
|
|
rm -Rf /usr/share/minetest/games/ENLIVEN/mods/mesecons |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
# (Ubuntu 14.04 Trusty Tahr Server) folders were found using: |
|
|
# (Ubuntu 14.04 Trusty Tahr Server) folders were found using: |
|
|
# cd / |
|
|
# cd / |
|
@ -37,6 +55,7 @@ fi |
|
|
# intentionally skip the slash in the following line since $USR_SHARE_MINETEST already starts with one: |
|
|
# intentionally skip the slash in the following line since $USR_SHARE_MINETEST already starts with one: |
|
|
MT_BACKUP_GAMES_DIR=$HOME/Backup$USR_SHARE_MINETEST/games |
|
|
MT_BACKUP_GAMES_DIR=$HOME/Backup$USR_SHARE_MINETEST/games |
|
|
MT_GAMES_DIR=$USR_SHARE_MINETEST/games |
|
|
MT_GAMES_DIR=$USR_SHARE_MINETEST/games |
|
|
|
|
|
MT_MYGAME_BAK=$USR_SHARE_MINETEST/ENLIVEN_BAK |
|
|
MT_MYGAME_NAME=ENLIVEN |
|
|
MT_MYGAME_NAME=ENLIVEN |
|
|
MT_MYGAME_DIR=$MT_GAMES_DIR/$MT_MYGAME_NAME |
|
|
MT_MYGAME_DIR=$MT_GAMES_DIR/$MT_MYGAME_NAME |
|
|
# formerly MT_MYGAME_MODDIR: |
|
|
# formerly MT_MYGAME_MODDIR: |
|
@ -44,6 +63,10 @@ MT_MYGAME_MODS_PATH=$MT_MYGAME_DIR/mods |
|
|
MT_MYWORLD_NAME=FCAGameAWorld |
|
|
MT_MYWORLD_NAME=FCAGameAWorld |
|
|
MT_MYWORLD_DIR=$HOME/.minetest/worlds/$MT_MYWORLD_NAME |
|
|
MT_MYWORLD_DIR=$HOME/.minetest/worlds/$MT_MYWORLD_NAME |
|
|
err_txt=$HOME/err-enliven.txt |
|
|
err_txt=$HOME/err-enliven.txt |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# BACKUP THE WORLD: |
|
|
# BACKUP THE WORLD: |
|
|
sudo chown $USER "$MT_MYWORLD_DIR/world.mt" |
|
|
sudo chown $USER "$MT_MYWORLD_DIR/world.mt" |
|
|
sudo chown $USER "$MT_MYWORLD_DIR/world.mt.1st" |
|
|
sudo chown $USER "$MT_MYWORLD_DIR/world.mt.1st" |
|
@ -76,11 +99,12 @@ if [ ! -d "$HOME/Downloads" ]; then |
|
|
fi |
|
|
fi |
|
|
cd "$HOME/Downloads" |
|
|
cd "$HOME/Downloads" |
|
|
|
|
|
|
|
|
if [ -d "$MT_MYGAME_DIR BAK" ]; |
|
|
if [ -d "$MT_MYGAME_BAK" ]; |
|
|
then |
|
|
then |
|
|
echo "already backed up $MT_MYGAME_DIR" |
|
|
echo "already backed up to $MT_MYGAME_BAK" |
|
|
else |
|
|
else |
|
|
sudo mv "$MT_MYGAME_DIR" "$MT_MYGAME_DIR BAK" |
|
|
sudo mv "$MT_MYGAME_DIR" "$MT_MYGAME_BAK" |
|
|
|
|
|
sudo mkdir "$MT_MYGAME_DIR" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -88,6 +112,7 @@ fi |
|
|
#sudo mkdir "$MT_MYGAME_MODS_PATH" |
|
|
#sudo mkdir "$MT_MYGAME_MODS_PATH" |
|
|
if [ ! -d "$MT_MYGAME_DIR/" ]; then |
|
|
if [ ! -d "$MT_MYGAME_DIR/" ]; then |
|
|
echo "ERROR: failed to create $MT_MYGAME_DIR, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to create $MT_MYGAME_DIR, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
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/" |
|
@ -127,6 +152,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
echo "load_mod_mobs = true" >> "$MT_MYWORLD_DIR/world.mt" |
|
|
echo "load_mod_mobs = true" >> "$MT_MYWORLD_DIR/world.mt" |
|
@ -153,6 +179,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
echo "load_mod_mobs_monster = true" >> "$MT_MYWORLD_DIR/world.mt" |
|
|
echo "load_mod_mobs_monster = true" >> "$MT_MYWORLD_DIR/world.mt" |
|
@ -176,6 +203,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
echo "load_mod_mobs_animal = true" >> "$MT_MYWORLD_DIR/world.mt" |
|
|
echo "load_mod_mobs_animal = true" >> "$MT_MYWORLD_DIR/world.mt" |
|
@ -211,6 +239,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -268,6 +297,7 @@ mv $MTMOD_UNZ_NAME $MTMOD_DEST_NAME |
|
|
sudo mv $MTMOD_DEST_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_DEST_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -294,6 +324,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
echo "load_mod_areas = true" >> "$MT_MYWORLD_DIR/world.mt" |
|
|
echo "load_mod_areas = true" >> "$MT_MYWORLD_DIR/world.mt" |
|
@ -350,6 +381,7 @@ fi |
|
|
#sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
#sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
#if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
#if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
# echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
# echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
# cat $err_txt |
|
|
# exit 1 |
|
|
# exit 1 |
|
|
#fi |
|
|
#fi |
|
|
|
|
|
|
|
@ -400,6 +432,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
echo "load_mod_unified_inventory = true" >> $MT_MYWORLD_DIR/world.mt |
|
|
echo "load_mod_unified_inventory = true" >> $MT_MYWORLD_DIR/world.mt |
|
@ -429,6 +462,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
echo "load_mod_technic = true" >> $MT_MYWORLD_DIR/world.mt |
|
|
echo "load_mod_technic = true" >> $MT_MYWORLD_DIR/world.mt |
|
@ -479,6 +513,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
echo "load_mod_treasurer = true" >> $MT_MYWORLD_DIR/world.mt |
|
|
echo "load_mod_treasurer = true" >> $MT_MYWORLD_DIR/world.mt |
|
@ -505,6 +540,7 @@ echo "load_mod_treasurer = true" >> $MT_MYWORLD_DIR/world.mt |
|
|
#sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
#sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
#if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
#if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
# echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
# echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
# cat $err_txt |
|
|
# exit 1 |
|
|
# exit 1 |
|
|
#fi |
|
|
#fi |
|
|
|
|
|
|
|
@ -541,6 +577,7 @@ git clone git://repo.or.cz/minetest_hudbars.git |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -584,6 +621,7 @@ sudo mv "$MTMOD_DEST_PATH/hunger/init.lua" "$MTMOD_DEST_PATH/hunger/init_UNUSED_ |
|
|
sudo mv "$MTMOD_DEST_PATH/hunger/init_(nosprint).lua" "$MTMOD_DEST_PATH/hunger/init.lua" |
|
|
sudo mv "$MTMOD_DEST_PATH/hunger/init_(nosprint).lua" "$MTMOD_DEST_PATH/hunger/init.lua" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
# END IF no hudbars mod |
|
|
# END IF no hudbars mod |
|
@ -617,6 +655,7 @@ git clone git://repo.or.cz/minetest_hbarmor.git |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -644,6 +683,7 @@ git clone git://repo.or.cz/minetest_hbhunger.git |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -670,6 +710,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -694,6 +735,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -718,6 +760,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -746,6 +789,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -787,6 +831,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -810,6 +855,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -834,6 +880,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
#mv minetest-3d_armor-master minetest-3d_armor_MODPACK |
|
|
#mv minetest-3d_armor-master minetest-3d_armor_MODPACK |
|
@ -869,6 +916,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -903,6 +951,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -927,6 +976,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -969,6 +1019,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to create $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to create $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1008,6 +1059,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1048,6 +1100,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1083,6 +1136,7 @@ git clone git://repo.or.cz/tsm_mines.git |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1115,6 +1169,7 @@ git clone git://repo.or.cz/RailCorridors/tsm_railcorridors.git |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1141,6 +1196,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1167,6 +1223,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1192,6 +1249,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1243,6 +1301,7 @@ sudo mv minetest_playereffects "$MTMOD_DEST_PATH" |
|
|
#sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
#sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
#if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
#if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
# echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
# echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
# cat $err_txt |
|
|
# exit 1 |
|
|
# exit 1 |
|
|
#fi |
|
|
#fi |
|
|
|
|
|
|
|
@ -1267,6 +1326,7 @@ unzip $MTMOD_SRC_ZIP |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1292,6 +1352,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1320,12 +1381,13 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# Update skins database: |
|
|
# Update skins database: |
|
|
#(jq is a json processor, required for the updater bash script:) |
|
|
#(jq is a json processor, required for the updater bash script:) |
|
|
sudo apt-get install jq |
|
|
sudo apt-get -y install jq |
|
|
cd "$MTMOD_DEST_PATH" |
|
|
cd "$MTMOD_DEST_PATH" |
|
|
# cd u_skins #bell07's version is a mod, not a modpack |
|
|
# cd u_skins #bell07's version is a mod, not a modpack |
|
|
cd updater |
|
|
cd updater |
|
@ -1357,6 +1419,7 @@ cd updater |
|
|
#sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
#sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
#if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
#if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
# echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
# echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
# cat $err_txt |
|
|
# exit 1 |
|
|
# exit 1 |
|
|
#fi |
|
|
#fi |
|
|
|
|
|
|
|
@ -1381,6 +1444,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1406,6 +1470,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1433,6 +1498,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1460,6 +1526,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
echo "SPAWN_PYRAMIDS = true" > settings.txt |
|
|
echo "SPAWN_PYRAMIDS = true" > settings.txt |
|
@ -1496,6 +1563,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1526,6 +1594,7 @@ fi |
|
|
#sudo cp -f $MTMOD_UNZ_NAME/31px/* "$MTMOD_DEST_PATH/" |
|
|
#sudo cp -f $MTMOD_UNZ_NAME/31px/* "$MTMOD_DEST_PATH/" |
|
|
#if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
#if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
# echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
# echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
# cat $err_txt |
|
|
# exit 1 |
|
|
# exit 1 |
|
|
#fi |
|
|
#fi |
|
|
|
|
|
|
|
@ -1552,6 +1621,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1576,6 +1646,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1605,6 +1676,7 @@ sudo rm -Rf "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1631,6 +1703,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1658,6 +1731,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1688,6 +1762,7 @@ git clone git://repo.or.cz/minetest_slimenodes.git |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1697,7 +1772,7 @@ cd $HOME/Downloads |
|
|
#MTMOD_DL_ZIP=file.php?id=6140 |
|
|
#MTMOD_DL_ZIP=file.php?id=6140 |
|
|
MTMOD_DL_ZIP=master.zip |
|
|
MTMOD_DL_ZIP=master.zip |
|
|
MTMOD_SRC_ZIP=invhack.zip |
|
|
MTMOD_SRC_ZIP=invhack.zip |
|
|
MTMOD_UNZ_NAME=invhack |
|
|
MTMOD_UNZ_NAME=minetest-invhack-master |
|
|
MTMOD_DEST_NAME=invhack |
|
|
MTMOD_DEST_NAME=invhack |
|
|
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME |
|
|
MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME |
|
|
#if [ -d "$MTMOD_UNZ_NAME" ]; then |
|
|
#if [ -d "$MTMOD_UNZ_NAME" ]; then |
|
@ -1720,6 +1795,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1749,6 +1825,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1778,6 +1855,7 @@ unzip "$MTMOD_SRC_ZIP" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -1808,10 +1886,20 @@ sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" |
|
|
sudo rm -Rf "$MTMOD_DEST_PATH/etc" |
|
|
sudo rm -Rf "$MTMOD_DEST_PATH/etc" |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
if [ ! -d "$MTMOD_DEST_PATH" ]; then |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt |
|
|
|
|
|
cat $err_txt |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
echo |
|
|
|
|
|
echo |
|
|
|
|
|
echo |
|
|
|
|
|
echo |
|
|
|
|
|
echo "# remove not available on 0.4.16 stable (is only avail on 0.4.16-dev or higher)" |
|
|
|
|
|
echo "sudo rm -Rf /usr/share/games/minetest/games/ENLIVEN/mods/worldedit/worldedit_brush" |
|
|
|
|
|
echo "# optionally:" |
|
|
|
|
|
echo "sudo cp -R ~/GitHub/EnlivenMinetest/etc/Mods\,WIP/* $MT_MYGAME_MODS_PATH/" |
|
|
|
|
|
echo "# not recommended:" |
|
|
|
|
|
echo "sudo cp -R ~/GitHub/EnlivenMinetest/etc/Mods\,stopgap/* $MT_MYGAME_MODS_PATH/" |
|
|
|
|
|
echo "sudo rm -Rf $MT_MYGAME_MODS_PATH/1.nonworking" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "" |
|
|
echo "" |
|
|