modified error handling methods
[feisty_meow.git] / scripts / buildor / refresh_gffs_build.sh
1 #!/bin/bash
2
3 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
4 source "$FEISTY_MEOW_SCRIPTS/buildor/gffs_builders.sh"
5
6 echo stopping any running genesis processes...
7 bash $GFFS_TOOLKIT_ROOT/library/zap_genesis_javas.sh 
8
9 export GFFS_LOGS="$HOME/.GenesisII"
10
11 echo cleaning out the logs directory...
12 \rm -f "$GFFS_LOGS"/*log*
13
14 echo making a simple starting log file for container...
15 if [ ! -d "$GFFS_LOGS" ]; then
16   mkdir -p "$GFFS_LOGS"
17   exit_on_error Making GFFS logs directory.
18 fi
19
20 echo building the code freshly, although not with a clean first...
21 build_gffs 
22 exit_on_error Building GFFS source code.
23
24 echo starting container now and spooling its log file...
25 (bash $GFFS_TOOLKIT_ROOT/library/maybe_restart_container.sh &>$TMP/main_container_restarting.log & )
26 # snooze a bit so the container gets a chance to write something.
27 sleep 4
28 tail -f ~/.GenesisII/container.log