Revision 1322 trunk/scripts/admb/root-admb.bat

root-admb.bat (revision 1322)
1 1
@echo off
2
@REM 
3
@REM  Copyright 2013 (c) ADMB Foundation
4
@REM 
2 5

  
3 6
setlocal EnableExtensions EnableDelayedExpansion
4 7

  
......
9 12
  ) else (
10 13
    set ADMB_PATH=%%~dpa
11 14
  )
12
  if exist !ADMB_PATH!build\dist\bin\admb.bat (
13
    set ADMB_HOME=!ADMB_PATH!build\dist
14
  ) else (
15
    pushd !ADMB_PATH!\..
16
    set ADMB_HOME=!CD!
17
    popd
15
)
16
if exist !ADMB_PATH!build\dist\bin\admb.bat (
17
  set ADMB_HOME=!ADMB_PATH!build\dist
18
)
19
else (
20
  if exist !ADMB_PATH!\bin\admb.bat (
21
    set ADMB_HOME=!ADMB_PATH!
18 22
  )
19
  if exist !ADMB_PATH!utilities\mingw\bin\g++.exe (
20
    set MINGW_HOME=!ADMB_PATH!utilities\mingw
21
  )
22
  call "!ADMB_HOME!\bin\admb.bat" %*
23 23
)
24
call "!ADMB_HOME!\bin\admb.bat" %*
25
exit 0

Also available in: Unified diff