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

root-admb.bat (revision 1442)
12 12
  ) else (
13 13
    set ADMB_PATH=%%~dpa
14 14
  )
15
  if exist !ADMB_PATH!\bin\admb.cmd (
16
    set ADMB_HOME=!ADMB_PATH!
15
  if exist !ADMB_PATH!bin\admb.cmd (
16
    set ADMB_HOME=!ADMB_PATH:~0,-1!
17 17
    call "!ADMB_HOME!\bin\admb" %*
18 18
  ) else (
19 19
    if exist !ADMB_PATH!build\dist\bin\admb.cmd (
20 20
      set ADMB_HOME=!ADMB_PATH!build\dist
21 21
      call "!ADMB_HOME!\bin\admb" %*
22
    ) else (
23
      echo "Error: Unable to find ADMB_HOME\bin\admb.cmd."
24
      goto EOF
22 25
    )
23 26
  )
24 27
  goto EOF

Also available in: Unified diff