nice, first bit of auto-help
[feisty_meow.git] / scripts / buildor / refresh_gffs_build.sh
index 8fd9e0f9dce105b0b490ba91914e18828852b023..3476b1ba8f8a735f94ad4fcb7ad720d58058ab2a 100644 (file)
@@ -1,16 +1,28 @@
 #!/bin/bash
 
-source $FEISTY_MEOW_SCRIPTS/buildor/gffs_builders.sh
+source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+source "$FEISTY_MEOW_SCRIPTS/buildor/gffs_builders.sh"
 
 echo stopping any running genesis processes...
-bash $XSEDE_TEST_ROOT/library/zap_genesis_javas.sh 
+bash $GFFS_TOOLKIT_ROOT/library/zap_genesis_javas.sh 
+
+export GFFS_LOGS="$HOME/.GenesisII"
+
+echo cleaning out the logs directory...
+\rm -f "$GFFS_LOGS"/*log*
+
+echo making a simple starting log file for container...
+if [ ! -d "$GFFS_LOGS" ]; then
+  mkdir -p "$GFFS_LOGS"
+  test_or_fail Making GFFS logs directory.
+fi
 
 echo building the code freshly, although not with a clean first...
 build_gffs 
-if [ $? -ne 0 ]; then
-  echo failed to build the code.
-fi
+test_or_fail Building GFFS source code.
 
 echo starting container now and spooling its log file...
-(bash $XSEDE_TEST_ROOT/library/maybe_restart_container.sh &>$TMP/container_restarty.log & )
+(bash $GFFS_TOOLKIT_ROOT/library/maybe_restart_container.sh &>$TMP/main_container_restarting.log & )
+# snooze a bit so the container gets a chance to write something.
+sleep 4
 tail -f ~/.GenesisII/container.log