Revision 1358

trunk/scripts/admb/admb (revision 1358)
6 6
#
7 7
shopt -s expand_aliases
8 8
alias help='echo -e "
9
Builds AD Model Builder application or library.\n
10
Usage: 
11
admb [-c] [-d] [-g] [-r] [-f] model [srcs]\n
9
Builds AD Model Builder executable or library.\n
10

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

  
12 13
Options:
13
 -c     Build object file only.
14
 -d     Build a shared library.
14
 -c     Build only object file(s) (.obj).
15
 -d     Build a shared library (.so).
15 16
 -g     Build with debug symbols.
16
 -r     Build Random effects program (ADMB-RE).
17
 -f     Build with Fast optimized mode (no bounds checking).
17
 -r     Build with Random effects library (ADMB-RE).
18
 -f     Build with Fast optimized mode library (no bounds checking).
18 19
        By default, admb script builds with bounds checking.
19 20
 model  TPL file (ie 'simple.tpl' or the filename 'simple' with no .tpl extension)
20
 srcs   One or more C++ source files with functions that are used in the model.\n
21
Examples:
22

  
23
Build a random effects model,
24
[admb/examples/admb-re/bcb]$ admb -r bcb.tpl
25
The program file is bcb.
26

  
27
Build a shared library,
28
[admb/examples/admb/simple]$ admb -d simple.tpl
29
The program file is simple.
30

  
31
Build with srcs and debug symbols,
32
[admb/contrib/ad2csv]$ admb -g ad2csv.cpp main.cpp
33
The program file is ad2csv.
21
 src(s) C/C++ Source file(s) containing classes, methods and variables that are used in model.
34 22
"'
35 23

  
36 24
if [[ "$1" == "" ]]; then help; exit; fi

Also available in: Unified diff