Statistics
| Revision:

root / trunk / scripts / admb / root-admb.sh @ 2187

History | View | Annotate | Download (432 Bytes)

1
#!/bin/bash
2
#
3
# Copyright (c) 2013-2014 ADMB Foundation
4
#
5
shopt -s expand_aliases
6

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

    
9
if [ -f "$SCRIPT_DIR/build/dist/bin/admb.sh" ]; then
10
  declare -rx ADMB_HOME="$SCRIPT_DIR/build/dist"
11
  $ADMB_HOME/bin/admb.sh $*
12
  exit 0
13
fi
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'."
22
exit 0