Revision 2154

trunk/scripts/admb/admb (revision 2154)
55 55
unset compileonly
56 56
dll=
57 57
debug=
58
parser=tpl2cpp
58
parser=
59 59
library=safe
60 60
compileonly=
61 61
output=
......
172 172
  rm -vf tfile1 tfile2 tfile3 tfile4 tfile5
173 173
  rm -f $model.cpp $model.htp $model.obj $model.o $model
174 174

  
175
  CMD="$parser $debug $dll $model"
176
  echo -e \\n\*\*\* Parse tpl: $model.tpl\\n$CMD
177
  eval $CMD
175
  if [ "$parser" == "tpl2rem" ]; then
176
    CMD="$parser $debug $dll $model"
177
    echo -e \\n\*\*\* Parse tpl: $model.tpl\\n$CMD
178
    eval $CMD
179
  else
180
    echo -e \\n\*\*\* Parse tpl: $model.tpl\\n
181
    CMD="tpl2rem $debug $dll $model"
182
    eval $CMD
183
    if [ ! -f $model.cpp -o ! -f $model.htp ]; then
184
      CMD="tpl2cpp $debug $dll $model"
185
      eval $CMD
186
    fi
187
    if [ -f $model.cpp -o -f $model.htp ]; then
188
      echo -e $CMD
189
    fi
190
  fi
178 191

  
179 192
  if [ ! -f $model.cpp -o ! -f $model.htp ]; then
180 193
    echo -e "\\nError: could not parse $model.tpl\\n"

Also available in: Unified diff