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

root-admb.bat (revision 973)
5 5
for %%a in (%0.bat) do (
6 6
  set HAS_PATH=%%~$PATH:a
7 7
  if not "!HAS_PATH!"=="" (
8
    set ADMB_PATH="%%~dp$PATH:a"
8
    set ADMB_PATH=%%~dp$PATH:a
9 9
  ) else (
10 10
    set ADMB_PATH=%%~dpa
11 11
  )
......
16 16
    set ADMB_HOME=!CD!
17 17
    popd
18 18
  )
19
  if exist !ADMB_PATH!utilities\mingw\bin\g++.exe (
20
    PATH=%PATH%;!ADMB_PATH!utilities\mingw\bin
21
    path
22
  )
19 23
  call !ADMB_HOME!\bin\admb.bat %*
20 24
)

Also available in: Unified diff