Revision 2155 trunk/scripts/admb/admb

admb (revision 2155)
177 177
    echo -e \\n\*\*\* Parse tpl: $model.tpl\\n$CMD
178 178
    eval $CMD
179 179
  else
180
    echo -e \\n\*\*\* Parse tpl: $model.tpl\\n
181
    CMD="tpl2rem $debug $dll $model"
182
    eval $CMD
180
    echo -e \\n\*\*\* Parse tpl: $model.tpl
181
    CMD="tpl2cpp $debug $dll $model"
182
    eval $CMD &> $model-error.log
183 183
    if [ ! -f $model.cpp -o ! -f $model.htp ]; then
184
      CMD="tpl2cpp $debug $dll $model"
185
      eval $CMD
184
      CMD="tpl2rem $debug $dll $model"
185
      eval $CMD &>> $model-error.log
186 186
    fi
187 187
    if [ -f $model.cpp -o -f $model.htp ]; then
188
      rm -f $model-error.log
188 189
      echo -e $CMD
189 190
    fi
190 191
  fi
191 192

  
192 193
  if [ ! -f $model.cpp -o ! -f $model.htp ]; then
193 194
    echo -e "\\nError: could not parse $model.tpl\\n"
195
    if [  -f  $model-error.log ]; then
196
      cat model-error.log
197
    fi
194 198
    exit 1
195 199
  fi
196 200
  tplsrcs="$tplsrcs ${model%.*}.cpp"

Also available in: Unified diff