Revision 1325

trunk/scripts/admb/root-admb (revision 1325)
4 4
#
5 5
shopt -s expand_aliases
6 6

  
7
if [ -f "$PWD/build/dist/bin/admb" ]; then
8
  declare -rx ADMB_HOME="$PWD/build/dist"
9
  $(ADMB_HOME)/bin/admb $*
7
SCRIPT_DIR=$(cd `dirname $0` && pwd)
8
if [ -f "$SCRIPT_DIR/build/dist/bin/admb" ]; then
9
  declare -rx ADMB_HOME="$SCRIPT_DIR/build/dist"
10
  $ADMB_HOME/bin/admb $*
10 11
else
11
  if [ -f "$PWD/bin/admb" ]; then
12
    declare -rx ADMB_HOME="$PWD"
13
    $(ADMB_HOME)/bin/admb $*
12
  if [ -f "$SCRIPT_DIR/bin/admb" ]; then
13
    declare -rx ADMB_HOME="$SCRIPT_DIR"
14
    $ADMB_HOME/bin/admb $*
14 15
  fi
15 16
fi
16 17

  

Also available in: Unified diff