Revision 1485

trunk/scripts/admb/admb (revision 1485)
28 28
if [[ "$1" == "-help" ]]; then help; exit; fi
29 29
if [[ "$1" == "--help" ]]; then help; exit; fi
30 30

  
31
ADMB_HOME=
31 32
if [ -z "$ADMB_HOME" ]; then
32 33
  FILE=$0
33 34
  DIRECTORY=$(cd `dirname "$FILE"` && pwd)
......
191 192

  
192 193
  fileobj=${file%.*}.obj
193 194
  CMD="$CXX -c $CXXFLAGS -o$fileobj $file"
194
  echo -e \\n\*\*\* Compile $file:\\n$CMD
195
  echo -e \\n\*\*\* Compile: $file\\n$CMD
195 196
  eval $CMD
196 197

  
197 198
  if [[ ! -f $fileobj ]]; then
......
209 210
  fi
210 211
  fileobj=${file%.*}.obj
211 212
  CMD="$CXX -c $CXXFLAGS -o$fileobj $file"
212
  echo -e \\n\*\*\* Compile $file: \\n$CMD
213
  echo -e \\n\*\*\* Compile: $file\\n$CMD
213 214
  eval $CMD
214 215
  if [[ ! -f $fileobj ]]; then
215 216
    echo -e "\\nError: Could not compile $file\\n"
......
257 258
      CMD="$CMD \"$ADMB_HOME/contrib/lib/libcontrib.a\" \"$ADMB_HOME/lib/libadmb.a\""
258 259
    fi
259 260
  fi
260
  echo -e \\n\*\*\* Linking $file $objs:\\n$CMD
261
  echo -e \\n\*\*\* Linking: $file $objs\\n$CMD
261 262
  eval $CMD
262 263
  if [[ -z $dll ]]; then
263 264
    if [[ ! -f $model ]]; then
......
310 311
      CMD="$CMD \"$ADMB_HOME/contrib/lib/libcontrib.a\" \"$ADMB_HOME/lib/libadmb.a\""
311 312
    fi
312 313
  fi
313
  echo -e \\n\*\*\* Linking $listobjs:\\n$CMD
314
  echo -e \\n\*\*\* Linking: $listobjs\\n$CMD
314 315
  eval $CMD
315 316

  
316 317
  if [ ! -z  "$output" ]; then
trunk/scripts/admb/admb.bat (revision 1485)
15 15
  goto EOF
16 16
)
17 17

  
18
set ADMB_HOME=
18 19
if not defined ADMB_HOME (
19 20
  set SCRIPT_PATH=%~dp0
20 21
  if defined SCRIPT_PATH (
......
271 272
  ) else (
272 273
    set CMD=!CXX!!CXXFLAGS! -o !tpl!.obj !tpl!.cpp
273 274
  )
274
  echo.&echo *** Compile !tpl!.cpp:
275
  echo.&echo *** Compile: !tpl!.cpp
275 276
  echo !CMD!
276 277
  call !CMD!
277 278
  if not exist !tpl!.obj (
......
294 295
    ) else (
295 296
      set CMD=!CXX!!CXXFLAGS! -o !filename!.obj !filename!.cpp
296 297
    )
297
    echo.&echo *** Compile !src!:
298
    echo.&echo *** Compile: !src!
298 299
    echo !CMD!
299 300
    call !CMD!
300 301
    if not exist !filename!.obj (
......
337 338
          set CMD=!LD!!LDFLAGS! -o !main!.exe !objs! !libs!
338 339
        )
339 340
      )
340
      echo.&echo *** Linking !objs!:
341
      echo.&echo *** Linking: !objs!
341 342
      echo !CMD!
342 343
      call !CMD!
343 344
      if defined d (
......
377 378
      )
378 379
    )
379 380
    if defined objs (
380
      echo.&echo *** Linking !tpl!.obj !objs!:
381
      echo.&echo *** Linking: !tpl!.obj !objs!
381 382
    ) else (
382
      echo.&echo *** Linking !tpl!.obj:
383
      echo.&echo *** Linking: !tpl!.obj
383 384
    )
384 385
    echo !CMD!
385 386
    call !CMD!

Also available in: Unified diff