From f93cdce0735a989feac9ea1cc2cdcf76bdc4a699 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Sat, 16 Mar 2019 02:46:54 -0400 Subject: [PATCH] improve scripts --- webapp/deploy-WIP-ENLIVEN.sh | 14 ++++++++++++++ webapp/reset-minetest.sh | 13 +++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100755 webapp/deploy-WIP-ENLIVEN.sh diff --git a/webapp/deploy-WIP-ENLIVEN.sh b/webapp/deploy-WIP-ENLIVEN.sh new file mode 100755 index 0000000..2c0d88b --- /dev/null +++ b/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." diff --git a/webapp/reset-minetest.sh b/webapp/reset-minetest.sh index 0910aa1..fc30b91 100755 --- a/webapp/reset-minetest.sh +++ b/webapp/reset-minetest.sh @@ -11,6 +11,7 @@ in_use_name=minetest url=https://downloads.minetest.org customDie () { + echo "ERROR: Cannot continue since" echo "$1" exit 1 } @@ -33,9 +34,17 @@ echo " (see libraries.log in case of any errors)" #bash -e mtcompile-program.sh build >& program.log echo "done." 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 - 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 echo " cd '$extracted_name' && bash -e mtcompile-program.sh build >& program.log" fi