Revision 1414

trunk/scripts/admb/root-admb (revision 1414)
5 5
shopt -s expand_aliases
6 6

  
7 7
SCRIPT_DIR=$(cd `dirname $0` && pwd)
8

  
8 9
if [ -f "$SCRIPT_DIR/build/dist/bin/admb.sh" ]; then
9 10
  declare -rx ADMB_HOME="$SCRIPT_DIR/build/dist"
10 11
  $ADMB_HOME/bin/admb.sh $*
11
else
12
  if [ -f "$SCRIPT_DIR/bin/admb.sh" ]; then
13
    declare -rx ADMB_HOME="$SCRIPT_DIR"
14
    $ADMB_HOME/bin/admb.sh $*
15
  fi
12
  exit 0
16 13
fi
17 14

  
15
if [ -f "$SCRIPT_DIR/bin/admb.sh" ]; then
16
  declare -rx ADMB_HOME="$SCRIPT_DIR"
17
  $ADMB_HOME/bin/admb.sh $*
18
  exit 0
19
fi
20

  
21
echo "Error: Unable to find 'admb.sh'."
18 22
exit 0

Also available in: Unified diff