Revision 950

trunk/scripts/admb/admb.bat (revision 950)
6 6
if [%1]==[-help] goto HELP
7 7
if [%1]==[--help] goto HELP
8 8

  
9
if defined ADMB_HOME (
10
  set "ADMB_HOME="
11
)
12
for %%a in (%0.bat) do (
13
  set IS_ON_PATH=%%~$PATH:a
14
  if not "!IS_ON_PATH!"=="" (
15
    set ADMB_PATH="%%~dp$PATH:a"
16
    pushd !ADMB_PATH!\..
17
    set ADMB_HOME=!CD!
18
    popd
19
  ) else (
20
    set ADMB_PATH="%%~dpa"
21
    pushd !ADMB_PATH!\..
22
    set ADMB_HOME=!CD!
23
    popd
24
  )
25
)
26
set PATH=!ADMB_HOME!\bin;%PATH%
27

  
9 28
set srcs=
10 29
set tpls=
11 30
set objs=

Also available in: Unified diff