Statistics
| Revision:

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

History | View | Annotate | Download (533 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!\bin\admb.bat (
17
  set ADMB_HOME=!ADMB_PATH!
18
  call "!ADMB_HOME!\bin\admb.bat" %*
19
) else (
20
  if exist !ADMB_PATH!build\dist\bin\admb.bat (
21
    set ADMB_HOME=!ADMB_PATH!build\dist
22
    call "!ADMB_HOME!\bin\admb.bat" %*
23
  )
24
)