3 # this is a simplified feisty meow environment loader that starts
4 # a subshell within which the environment is available. exiting
5 # one time gets back to the shell that ran this script. (this script
6 # is designed to be executed, not sourced.)
8 # Author: Chris Koeritz
10 ORIGINATING_FOLDER="$( \cd "$(\dirname "$0")" && /bin/pwd )"
11 export CORE_SCRIPTS_DIR="$(echo "$ORIGINATING_FOLDER" | tr '\\\\' '/' )"
12 echo core scripts dir is $CORE_SCRIPTS_DIR
14 THIS_TOOL_NAME="$(basename "$0")"
16 pushd "$CORE_SCRIPTS_DIR/../.." &>/dev/null
17 export FEISTY_MEOW_APEX="$(/bin/pwd)"
18 echo feisty apex is now FEISTY_MEOW_APEX=$FEISTY_MEOW_APEX
20 #hmmm: actually this should run the reconfigure script first!
21 # then we would be semi-bulletproof and wouldn't actually have
22 # to make users run that as first step?
24 bash --init-file <(echo "\
25 echo "subshell sees feisty meow apex as $FEISTY_MEOW_APEX"; \
26 bash "$CORE_SCRIPTS_DIR/reconfigure_feisty_meow.sh"; \
27 if [ $? -ne 0 ]; then echo "error--reconfiguring feisty meow environment failed."; fi; \
28 source "$CORE_SCRIPTS_DIR/launch_feisty_meow.sh"; \
29 if [ $? -ne 0 ]; then echo "error--launching feisty meow environment failed."; fi; \