Statistics
| Revision:

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

History | View | Annotate | Download (542 Bytes)

1
@echo off
2
@REM 
3
@REM  Copyright 2013 (c) ADMB Foundation
4
@REM 
5

    
6
setlocal EnableExtensions EnableDelayedExpansion
7

    
8
for %%a in (%0.bat) do (
9
  set HAS_PATH=%%~$PATH:a
10
  if not "!HAS_PATH!"=="" (
11
    set ADMB_PATH=%%~dp$PATH:a
12
  ) else (
13
    set ADMB_PATH=%%~dpa
14
  )
15
)
16
if exist !ADMB_PATH!build\dist\bin\admb.bat (
17
  set ADMB_HOME=!ADMB_PATH!build\dist
18
  call "!ADMB_HOME!\bin\admb.bat" %*
19
)
20
else (
21
  if exist !ADMB_PATH!\bin\admb.bat (
22
    set ADMB_HOME=!ADMB_PATH!
23
    call "!ADMB_HOME!\bin\admb.bat" %*
24
  )
25
)
26
exit 0