Statistics
| Revision:

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

History | View | Annotate | Download (544 Bytes)

1
@echo off
2

    
3
setlocal EnableExtensions EnableDelayedExpansion
4

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