summaryrefslogtreecommitdiffstats
path: root/Tools/msi/build.bat
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-07-04 18:48:37 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-07-04 18:48:37 (GMT)
commit06606e716540d6607a0a5496ab9d81f0ee646247 (patch)
tree2d6d9be584b3b92f5a10ecbf65e616c1ed436a55 /Tools/msi/build.bat
parent1b7f6fedb3472b709928e8763d0b86f99fb5d7a9 (diff)
downloadcpython-06606e716540d6607a0a5496ab9d81f0ee646247.zip
cpython-06606e716540d6607a0a5496ab9d81f0ee646247.tar.gz
cpython-06606e716540d6607a0a5496ab9d81f0ee646247.tar.bz2
Ignore user environment/site-packages for ensurepip and compile_all
Remove build condition to prevent old strings hanging around Add -h option to build.bat
Diffstat (limited to 'Tools/msi/build.bat')
-rw-r--r--Tools/msi/build.bat16
1 files changed, 13 insertions, 3 deletions
diff --git a/Tools/msi/build.bat b/Tools/msi/build.bat
index 4dfa5fb..1dc05c3 100644
--- a/Tools/msi/build.bat
+++ b/Tools/msi/build.bat
@@ -8,9 +8,10 @@ set BUILDX64=
set BUILDDOC=
:CheckOpts
-if '%1'=='-x86' (set BUILDX86=1) && shift && goto CheckOpts
-if '%1'=='-x64' (set BUILDX64=1) && shift && goto CheckOpts
-if '%1'=='--doc' (set BUILDDOC=1) && shift && goto CheckOpts
+if "%1" EQU "-h" goto Help
+if "%1" EQU "-x86" (set BUILDX86=1) && shift && goto CheckOpts
+if "%1" EQU "-x64" (set BUILDX64=1) && shift && goto CheckOpts
+if "%1" EQU "--doc" (set BUILDDOC=1) && shift && goto CheckOpts
if not defined BUILDX86 if not defined BUILDX64 (set BUILDX86=1) && (set BUILDX64=1)
@@ -44,3 +45,12 @@ if defined BUILDX64 (
msbuild "%D%bundle\snapshot.wixproj" /p:Platform=x64
if errorlevel 1 goto :eof
)
+
+exit /B 0
+
+:Help
+echo build.bat [-x86] [-x64] [--doc] [-h]
+echo.
+echo -x86 Build x86 installers
+echo -x64 Build x64 installers
+echo --doc Build CHM documentation