Revision 1421 trunk/scripts/admb/admb

admb (revision 1421)
17 17
 -r     Build with Random effects library (ADMB-RE).
18 18
 -f     Build with Fast optimized mode library (no bounds checking).
19 19
        By default, admb script builds with bounds checking.
20
 model  TPL file (ie 'simple.tpl' or the filename 'simple' with no .tpl 
20
 model  TPL file (ie 'simple.tpl' or the filename 'simple' with no .tpl
21 21
        extension)
22
 src(s) C/C++ Source file(s) containing classes, methods and variables that 
22
 src(s) C/C++ Source file(s) containing classes, methods and variables that
23 23
        are used in model.
24 24
"'
25 25

  
......
34 34

  
35 35
FILE=$0
36 36
DIRECTORY=$(cd `dirname $FILE` && pwd)
37
while [ -h "${FILE}" ]; do 
37
while [ -h "${FILE}" ]; do
38 38
  pushd $DIRECTORY &> /dev/null
39 39
  FILE=$(readlink $DIRECTORY/admb)
40 40
  DIRECTORY=$(cd `dirname $FILE` && pwd)
......
48 48
# Pop args until model=$1
49 49
unset dll
50 50
unset debug
51
unset parser 
51
unset parser
52 52
unset library
53 53
unset compileonly
54 54
dll=
......
59 59
output=
60 60
while getopts "dgrsfco:" A; do
61 61
  case $A in
62
    d) 
62
    d)
63 63
       dll=-dll
64 64
       ;;
65
    g) 
65
    g)
66 66
       debug=-debug
67 67
       ;;
68
    r) 
68
    r)
69 69
       parser=tpl2rem
70 70
       ;;
71 71
    s)
72 72
       ;;
73
    f) 
73
    f)
74 74
       library=opt
75 75
       ;;
76
    c) 
76
    c)
77 77
       compileonly=yes
78 78
       ;;
79
    o) 
79
    o)
80 80
       output="$OPTARG"
81 81
       ;;
82 82
    *)
......
107 107
    nontpls="$nontpls $file"
108 108
  fi
109 109
done
110
if [ -z "$tpls" ]; then 
111
  if [ -z "$srcs" ]; then 
112
    if [ -z "$objs" ]; then 
113
      if [ -z "$nontpls" ]; then 
110
if [ -z "$tpls" ]; then
111
  if [ -z "$srcs" ]; then
112
    if [ -z "$objs" ]; then
113
      if [ -z "$nontpls" ]; then
114 114
        echo -e "Error: Nothing to build."
115 115
        exit 1
116 116
      fi
......
160 160
    exit 1
161 161
  fi
162 162

  
163
  rm -vf classdef.tmp xxdata.tmp xxhtop.tmp xxhtopm.tmp xxglobal.tmp xxtopm.tmp 
164
  rm -vf xxalloc.tmp xxalloc1.tmp xxalloc2.tmp xxalloc3.tmp xxalloc4.tmp xxalloc5.tmp xxalloc6.tmp header.tmp 
163
  rm -vf classdef.tmp xxdata.tmp xxhtop.tmp xxhtopm.tmp xxglobal.tmp xxtopm.tmp
164
  rm -vf xxalloc.tmp xxalloc1.tmp xxalloc2.tmp xxalloc3.tmp xxalloc4.tmp xxalloc5.tmp xxalloc6.tmp header.tmp
165 165
  rm -vf tfile1 tfile2 tfile3 tfile4 tfile5
166 166
  rm -f $model.cpp $model.htp $model.obj $model.o $model
167 167

  
......
224 224
  fi
225 225
  echo -e "\\nCompiled $objects.\\n"
226 226
  exit 0
227
fi 
227
fi
228 228

  
229 229
for file in $tplobjs
230 230
do
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff