Revision 1322 trunk/scripts/admb/root-admb

root-admb (revision 1322)
4 4
#
5 5
shopt -s expand_aliases
6 6

  
7
SCRIPT_DIR=`dirname $0`
8
pushd "$SCRIPT_DIR" &> /dev/null
9
declare -rx ADMB_HOME="$PWD/build/dist"
10
popd &> /dev/null
7
if [ -f "$PWD/build/dist/bin/admb" ]; then
8
  declare -rx ADMB_HOME="$PWD/build/dist"
9
else
10
  if [ -f "$PWD/bin/admb" ]; then
11
    declare -rx ADMB_HOME="$PWD"
12
  fi
13
fi
11 14

  
12
PATH="$ADMB_HOME"/bin:$PATH
15
$(ADMB_HOME)/admb $*
13 16

  
14
admb $*
15

  
16 17
exit 0

Also available in: Unified diff