Browse Source

improve scripts

master
poikilos 6 years ago
committed by Jacob Gustafson
parent
commit
f93cdce073
  1. 14
      webapp/deploy-WIP-ENLIVEN.sh
  2. 13
      webapp/reset-minetest.sh

14
webapp/deploy-WIP-ENLIVEN.sh

@ -0,0 +1,14 @@
#!/bin/bash
src=WIP/ENLIVEN
if [ ! -d "$src" ]; then
echo "ERROR: missing $src"
exit 1
fi
dst="$HOME/EnlivenMinetest/webapp/linux-minetest-kit/minetest/games"
echo "transferring to $dst..."
rsync -rt WIP/ENLIVEN $dst
dst="192.168.1.5:/home/owner/git/EnlivenMinetest/webapp/linux-minetest-kit/minetest/games"
echo "transferring to $dst..."
rsync -rt WIP/ENLIVEN $dst
echo "Done."

13
webapp/reset-minetest.sh

@ -11,6 +11,7 @@ in_use_name=minetest
url=https://downloads.minetest.org url=https://downloads.minetest.org
customDie () { customDie () {
echo "ERROR: Cannot continue since"
echo "$1" echo "$1"
exit 1 exit 1
} }
@ -33,9 +34,17 @@ echo " (see libraries.log in case of any errors)"
#bash -e mtcompile-program.sh build >& program.log #bash -e mtcompile-program.sh build >& program.log
echo "done." echo "done."
echo echo
echo "Run the following manually:" echo
echo
echo
echo
echo "Check libraries.log for errors, then..."
echo "- Run the following manually:"
if [ -f "$extracted_name/mtcompile-program.pl" ]; then if [ -f "$extracted_name/mtcompile-program.pl" ]; then
echo " cd '$extracted_name' && perl mtcompile-program.pl build >& program.log" echo " cd '$extracted_name'"
echo " perl mtcompile-program.pl build >& program.log"
echo " # OR (server only):"
echo " perl mtcompile-program.pl build --server >& program.log"
else else
echo " cd '$extracted_name' && bash -e mtcompile-program.sh build >& program.log" echo " cd '$extracted_name' && bash -e mtcompile-program.sh build >& program.log"
fi fi

Loading…
Cancel
Save