From 558e8c3118539a598ccea607b353f1873070924c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 7 Sep 2016 05:43:00 +0200 Subject: Handle lack of where command on Windows XP without Resource Kit Note that we only do this for MinGW batch file/documentation since one cannot install MSVC 14 on XP and that's the earliest version we support. --- BOOTSTRAP-MINGW.cli | 3 ++- build-mingw.bat | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/BOOTSTRAP-MINGW.cli b/BOOTSTRAP-MINGW.cli index 790ccfc..764c66b 100644 --- a/BOOTSTRAP-MINGW.cli +++ b/BOOTSTRAP-MINGW.cli @@ -166,7 +166,8 @@ Next, we add the package repository, build, and install: > bpkg-stage install build2 bpkg \ -Finally, we verify the result: +Finally, we verify the result (note that the \c{where} command is not +available on Windows XP without the Resource Kit installed): \ > where b diff --git a/build-mingw.bat b/build-mingw.bat index 76efb51..51d01ef 100644 --- a/build-mingw.bat +++ b/build-mingw.bat @@ -120,11 +120,13 @@ build2\build2\b-boot configure^ build2\build2\b-boot install @if errorlevel 1 goto error +@rem The where command is not available on XP without the resource kit. +@rem where b-stage -@if errorlevel 1 goto error +@rem @if errorlevel 1 goto error where bpkg-stage -@if errorlevel 1 goto error +@rem @if errorlevel 1 goto error b-stage --version @if errorlevel 1 goto error @@ -161,10 +163,10 @@ bpkg-stage install build2 bpkg @if errorlevel 1 goto error where b -@if errorlevel 1 goto error +@rem @if errorlevel 1 goto error where bpkg -@if errorlevel 1 goto error +@rem @if errorlevel 1 goto error b --version @if errorlevel 1 goto error -- cgit v1.1