#!/bin/bash # See: https://stackoverflow.com/questions/29832037/how-to-get-script-directory-in-posix-sh/29835459#29835459 full_progdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" full_parentdir=${full_progdir%/*} cd "$full_parentdir" \ && if [ -f SETUP.bash ] ; then . ./SETUP.bash ; else . ./gs3-setup-cli.sh && . ./gs3-setup.sh ; fi \ && if [ -f ant-start-with-exts.sh ] ; then ./ant-start-with-exts.sh ; else ant start ; fi