Revision 1420

trunk/scripts/admb/admb (revision 1420)
6 6
#
7 7
shopt -s expand_aliases
8 8
alias help='echo -e "
9
Builds AD Model Builder executable or library.\n
9
Builds AD Model Builder executable or library.
10 10

  
11
Usage: admb [-c] [-d] [-g] [-r] [-f] model [src(s)]\n
11
Usage: admb [-c] [-d] [-g] [-r] [-f] model [src(s)]
12 12

  
13 13
Options:
14 14
 -c     Build only object file(s) (.obj).
......
21 21
        extension)
22 22
 src(s) C/C++ Source file(s) containing classes, methods and variables that 
23 23
        are used in model.
24
01234567890123456789012345678901234567890123456789012345678901234567890123456789
25 24
"'
26 25

  
27 26
if [[ "$1" == "" ]]; then help; exit; fi
......
108 107
    nontpls="$nontpls $file"
109 108
  fi
110 109
done
110
if [ -z "$tpls" ]; then 
111
  if [ -z "$srcs" ]; then 
112
    if [ -z "$objs" ]; then 
113
      if [ -z "$nontpls" ]; then 
114
        echo -e "Error: Nothing to build."
115
        exit 1
116
      fi
117
    fi
118
  fi
119
fi
111 120
if [ -f "$ADMB_HOME/bin/admb-cfg.sh" ]; then
112 121
  source "$ADMB_HOME/bin/admb-cfg.sh"
113 122
  CXX=$ADMB_CFG_CXX

Also available in: Unified diff