Browse Source

fix typos

master
poikilos 6 years ago
committed by Jacob Gustafson
parent
commit
c3468a8ac9
  1. 32
      webapp/install-mts.sh
  2. 4
      webapp/reset-minetest.sh

32
webapp/install-mts.sh

@ -16,9 +16,11 @@ if [ -f "$flag_file" ]; then
fi fi
if [ -f "mtcompile-program.pl" ]; then if [ -f "mtcompile-program.pl" ]; then
# perl mtcompile-program.pl build >& program.log # perl mtcompile-program.pl build >& program.log
echo "Compiling via perl..."
perl mtcompile-program.pl build --server >& program.log perl mtcompile-program.pl build --server >& program.log
else else
# NOTE: no pl in $extracted_name, assuming bash: # NOTE: no pl in $extracted_name, assuming bash:
echo "Compiling via bash..."
bash -e mtcompile-program.sh build >& program.log bash -e mtcompile-program.sh build >& program.log
fi fi
if [ ! -f "$flag_file" ]; then if [ ! -f "$flag_file" ]; then
@ -45,14 +47,28 @@ if [ ! -d "$flag_dir" ]; then
fi fi
if [ ! -d "$HOME/games/ENLIVEN" ]; then if [ ! -d "$HOME/games/ENLIVEN" ]; then
cp -R "$flag_dir" "$HOME/games/ENLIVEN" cp -R "$flag_dir" "$HOME/games/ENLIVEN"
echo echo "name = ENLIVEN" > "$HOME/games/ENLIVEN/game.conf"
else else
rsync -rt "$flag_dir/mods/coderbuild/" "$HOME/games/ENLIVEN/mods/coderbuild" mod_name=coderbuild
rsync -rt "$flag_dir/mods/codercore/" "$HOME/games/ENLIVEN/mods/codercore" echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/coderedit/" "$HOME/games/ENLIVEN/mods/coderedit" rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods"
rsync -rt "$flag_dir/mods/coderfood/" "$HOME/games/ENLIVEN/mods/coderfood" mod_name=codercore
rsync -rt "$flag_dir/mods/codermobs/" "$HOME/games/ENLIVEN/mods/codermobs" echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/decorpack/" "$HOME/games/ENLIVEN/mods/decorpack" rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods"
rsync -rt "$flag_dir/mods/mtmachines/" "$HOME/games/ENLIVEN/mods/mtmachines" mod_name=coderedit
echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods"
mod_name=coderfood
echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods"
mod_name=codermobs
echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods"
mod_name=decorpack
echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods"
mod_name=mtmachines
echo "updating $mod_name..."
rsync -rt "$flag_dir/mods/$mod_name" "$HOME/games/ENLIVEN/mods"
# cp -f "$flag_dir/mods/LICENSE" "$HOME/games/ENLIVEN/mods/LICENSE" # cp -f "$flag_dir/mods/LICENSE" "$HOME/games/ENLIVEN/mods/LICENSE"
fi fi

4
webapp/reset-minetest.sh

@ -44,7 +44,7 @@ echo
echo echo
cd .. cd ..
echo "Check libraries.log for errors, then..." echo "Check libraries.log for errors, then..."
echo "- Run the following manually:" echo "- Run the following manually for SERVER only (no graphical client):"
echo " install.sh" echo " bash install-mts.sh"
echo echo
echo echo

Loading…
Cancel
Save