Subject: [Boost-bugs] [Boost C++ Libraries] #1663: build.bat cannot set/reset ERRORLEVEL
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-03-01 15:41:41
#1663: build.bat cannot set/reset ERRORLEVEL
---------------------------------------------------------------+------------
Reporter: Takeshi Mouri <takeshi.mouri.net_at_[hidden]> | Owner: grafik
Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: bjam
Version: Boost 1.34.1 | Severity: Problem
Keywords: |
---------------------------------------------------------------+------------
The file build.bat says
REM NOTE: The "setlocal & endlocal" construct is used to reset the
errorlevel to 0.
But this does't work on Windows 2000/XP/Vista.
And says aloso
REM NOTE: The "set _error_=" construct is used to set the errorlevel to
1
This does't work on Windows Vista.
So, my Proposed resolution is
reset the errorlevel to 0::
ver>NUL
set the errorlevel to 1::
dir NUL>NUL 2>&1
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1663>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC