Browse Source

fix typos, use existing minetest

master
poikilos 6 years ago
committed by Jacob Gustafson
parent
commit
47a5847ac6
  1. 56
      webapp/install-mts.sh

56
webapp/install-mts.sh

@ -7,21 +7,25 @@ if [ ! -d "$flag_dir" ]; then
fi fi
cd "$extracted_name" cd "$extracted_name"
flag_file="minetest/bin/minetestserver" flag_file="minetest/bin/minetestserver"
if [ -f "$flag_file" ]; then #if [ -f "$flag_file" ]; then
rm -f "$flag_file" #rm -f "$flag_file"
fi #fi
if [ -f "$flag_file" ]; then #if [ -f "$flag_file" ]; then
echo "ERROR: Nothing done since can't remove old '$flag_file'" #echo "ERROR: Nothing done since can't remove old '$flag_file'"
exit 1 #exit 1
fi #fi
if [ -f "mtcompile-program.pl" ]; then if [ -d minetest ]; then
# perl mtcompile-program.pl build >& program.log echo "using existing minetest..."
echo "Compiling via perl..."
perl mtcompile-program.pl build --server >& program.log
else else
# NOTE: no pl in $extracted_name, assuming bash: if [ -f "mtcompile-program.pl" ]; then
echo "Compiling via bash..." # perl mtcompile-program.pl build >& program.log
bash -e mtcompile-program.sh build >& program.log echo "Compiling via perl..."
perl mtcompile-program.pl build --server >& program.log
else
# NOTE: no pl in $extracted_name, assuming bash:
echo "Compiling via bash..."
bash -e mtcompile-program.sh build >& program.log
fi
fi fi
if [ ! -f "$flag_file" ]; then if [ ! -f "$flag_file" ]; then
echo "ERROR: Build did not complete--missing '$flag_file'" echo "ERROR: Build did not complete--missing '$flag_file'"
@ -40,35 +44,35 @@ if [ ! -f "$flag_file" ]; then
echo "ERROR: not complete--couldn't create '$flag_file'" echo "ERROR: not complete--couldn't create '$flag_file'"
exit 1 exit 1
fi fi
flag_dir="$HOME/games/Bucket_Game" flag_dir="$HOME/minetest/games/Bucket_Game"
if [ ! -d "$flag_dir" ]; then if [ ! -d "$flag_dir" ]; then
echo "ERROR: missing $flag_dir" echo "ERROR: missing $flag_dir"
exit 1 exit 1
fi fi
if [ ! -d "$HOME/games/ENLIVEN" ]; then if [ ! -d "$HOME/minetest/games/ENLIVEN" ]; then
cp -R "$flag_dir" "$HOME/games/ENLIVEN" cp -R "$flag_dir" "$HOME/minetest/games/ENLIVEN"
echo "name = ENLIVEN" > "$HOME/games/ENLIVEN/game.conf" echo "name = ENLIVEN" > "$HOME/minetest/games/ENLIVEN/game.conf"
else else
mod_name=coderbuild mod_name=coderbuild
echo "updating $mod_name..." echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods" rsync -rt "$flag_dir/mods/$mod_name" "$HOME/minetest/games/ENLIVEN/mods"
mod_name=codercore mod_name=codercore
echo "updating $mod_name..." echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods" rsync -rt "$flag_dir/mods/$mod_name" "$HOME/minetest/games/ENLIVEN/mods"
mod_name=coderedit mod_name=coderedit
echo "updating $mod_name..." echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods" rsync -rt "$flag_dir/mods/$mod_name" "$HOME/minetest/games/ENLIVEN/mods"
mod_name=coderfood mod_name=coderfood
echo "updating $mod_name..." echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods" rsync -rt "$flag_dir/mods/$mod_name" "$HOME/minetest/games/ENLIVEN/mods"
mod_name=codermobs mod_name=codermobs
echo "updating $mod_name..." echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods" rsync -rt "$flag_dir/mods/$mod_name" "$HOME/minetest/games/ENLIVEN/mods"
mod_name=decorpack mod_name=decorpack
echo "updating $mod_name..." echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods" rsync -rt "$flag_dir/mods/$mod_name" "$HOME/minetest/games/ENLIVEN/mods"
mod_name=mtmachines mod_name=mtmachines
echo "updating $mod_name..." echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods" rsync -rt "$flag_dir/mods/$mod_name" "$HOME/minetest/games/ENLIVEN/mods"
# cp -f "$flag_dir/mods/LICENSE" "$HOME/games/ENLIVEN/mods/LICENSE" # cp -f "$flag_dir/mods/LICENSE" "$HOME/minetest/games/ENLIVEN/mods/LICENSE"
fi fi

Loading…
Cancel
Save