Revision 1011

trunk/scripts/admb/admb (revision 1011)
5 5
  -d     Create DLL
6 6
  -g     Insert debugging symbols
7 7
  -r     Create ADMB-RE
8
  -s     Enforce safe bounds
8
  -s     Enforce safe bounds (default)
9
  -O     Use optimized mode
9 10
  model  Filename prefix, e.g. simple\n"'
10 11
if [[ "$1" == "" ]]; then help; exit; fi
11 12
if [[ "$1" == "-help" ]]; then help; exit; fi
......
37 38
unset s
38 39
unset c
39 40
tpl2cpp=tpl2cpp
40
while getopts "dgrsc" A; do
41
s=-s
42
bounds=-bounds
43
while getopts "dgrscO" A; do
41 44
  case $A in
42 45
    d) d=-d; dll=-dll
43 46
       ;;
......
47 50
       ;;
48 51
    s) s=-s; bounds=-bounds
49 52
       ;;
53
    O) s=; bounds=
54
       ;;
50 55
    c) c=1
51 56
       ;;
52 57
    *)
trunk/scripts/admb/admb.bat (revision 1011)
29 29
set srcs=
30 30
set tpls=
31 31
set objs=
32
set s=-s 
33
set bounds=-bounds
32 34

  
33 35
for %%a in (%*) do (
34 36
  set arg=%%a
......
48 50
      set s=-s 
49 51
      set bounds=-bounds
50 52
    )
53
    if %%a==-O (
54
      set s=
55
      set bounds=
56
    )
51 57
  ) else (
52 58
    if "%%~xa"=="" (
53 59
      set tpls=!tpls! %%a
......
126 132
echo   -d     Create DLL
127 133
echo   -g     Insert debugging symbols
128 134
echo   -r     Create ADMB-RE
129
echo   -s     Enforce safe bounds
135
echo   -s     Enforce safe bounds (default)
136
echo   -O     Use optimized mode
130 137
echo   model  Filename prefix, e.g. simple
131 138
echo.
132 139
goto EOF

Also available in: Unified diff