Commit 4c47cbf5 authored by Steve Holme's avatar Steve Holme
Browse files

buildconf.bat: Maintain compatibility with DOS based systems

Commit f08e30d7 broke compatibility with DOS and non Windows NT based
versions of Windows due to the use of the setlocal command.
parent c22fae7c
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -24,14 +24,14 @@ rem ***************************************************************************
rem NOTES
rem
rem This batch file must be used to set up a git tree to build on systems where
rem there is no autotools support (i.e. Windows).
rem there is no autotools support (i.e. DOS and Windows).
rem
rem This file is not included or required for curl's release archives or daily 
rem snapshot archives.

:begin
  rem Set our variables
  setlocal
  if "%OS%" == "Windows_NT" setlocal
  set MODE=GENERATE

  rem Switch to this batch file's directory
@@ -143,9 +143,17 @@ rem
  goto error

:error
  if "%OS%" == "Windows_NT" (
    endlocal
  ) else (
    set MODE=
  )
  exit /B 1

:success
  if "%OS%" == "Windows_NT" (
    endlocal
  ) else (
    set MODE=
  )
  exit /B 0