Revision 1419 trunk/scripts/admb/admb.bat

admb.bat (revision 1419)
15 15
  goto EOF
16 16
)
17 17

  
18
if defined ADMB_HOME (
19
  set ADMB_HOME=
20
)
21
if defined ADMB_HOME (
22
  echo "Error: Unable to unset ADMB_HOME=!ADMB_HOME!."
23
  goto EOF
24
)
25
for %%a in (%0) do (
26
  set HAS_PATH=%%~$PATH:a
27
  if defined HAS_PATH (
28
    set ADMB_PATH="%%~dp$PATH:a"
29
  ) else (
30
    set ADMB_PATH="%%~dpa"
18
if not defined ADMB_HOME (
19
  for %%a in (%0) do (
20
    set HAS_PATH=%%~$PATH:a
21
    if defined HAS_PATH (
22
      set ADMB_PATH="%%~dp$PATH:a"
23
    ) else (
24
      set ADMB_PATH="%%~dpa"
25
    )
26
    pushd !ADMB_PATH!\..
27
    set ADMB_HOME=!CD!
28
    popd
31 29
  )
32
  pushd !ADMB_PATH!\..
33
  set ADMB_HOME=!CD!
34
  popd
35 30
)
36 31
if not defined ADMB_HOME (
37 32
  echo "Error: ADMB_HOME is not defined."
......
141 136
    set LL=dllwrap
142 137
  )
143 138
)
144
if defined debug (
139
if defined g (
145 140
  set CXXFLAGS=!CXXFLAGS! -g
146 141
  set LDFLAGS=!LDFLAGS! -s
147 142
) else (

Also available in: Unified diff