aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-07 05:43:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-07 05:43:00 +0200
commit558e8c3118539a598ccea607b353f1873070924c (patch)
tree033fc0d38995a6847fc32a8155892ec24d6627e0
parent12069ed3219a7331936646306aaa8e6ee02ce123 (diff)
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.
-rw-r--r--BOOTSTRAP-MINGW.cli3
-rw-r--r--build-mingw.bat10
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