]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix quoting and a typo; add a variable for the Python executable path.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 29 Dec 2014 22:39:37 +0000 (22:39 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 9 Apr 2015 14:40:00 +0000 (15:40 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
build-win7-x86-64.bat

index b510bd387e4ee810274b4e7aadc622a446072577..15bacc6089ebaa1d41c01666d543701ee2d59d07 100644 (file)
@@ -25,9 +25,10 @@ REM start /wait dependencies/pyOpenSSL-0.13.1.win-amd64-py2.7.exe
 REM open visual studio 2008 cmd prompt as Administrator (right click)
 REM  Run the "Windows SDK Configuration Tool", select v7.0 and click "Make Current".
 
-set VC_INSTALL_DIR=%VC90COMNTOOLS%..\..
+set PYTHON=C:\Python27\python.exe
+set VC_INSTALL_DIR=%VS90COMNTOOLS%..\..
 
-call %VC_INSTALL_DIR%\VC\bin\vcvars64.bat
+call "%VC_INSTALL_DIR%\VC\bin\vcvars64.bat"
 
 set MSSdk=1
 set DISTUTILS_USE_SDK=1
@@ -41,11 +42,11 @@ regedit /s x64\656d875f-2429-11d7-8bf6-00b0d03daa06.reg
 regedit /s x64\656d8760-2429-11d7-8bf6-00b0d03daa06.reg
 regedit /s x64\656d8763-2429-11d7-8bf6-00b0d03daa06.reg
 regedit /s x64\656d8766-2429-11d7-8bf6-00b0d03daa06.reg
-copy %VC_INSTALL_DIR%\VC\vcpackages\AMD64.VCPlatform.config %VC_INSTALL_DIR%\VC\vcpackages\AMD64.VCPlatform.Express.config
-copy %VC_INSTALL_DIR%\VC\vcpackages\Itanium.VCPlatform.config %VC_INSTALL_DIR%\VC\vcpackages\Itanium.VCPlatform.Express.config
+copy "%VC_INSTALL_DIR%\VC\vcpackages\AMD64.VCPlatform.config" "%VC_INSTALL_DIR%\VC\vcpackages\AMD64.VCPlatform.Express.config"
+copy "%VC_INSTALL_DIR%\VC\vcpackages\Itanium.VCPlatform.config" "%VC_INSTALL_DIR%\VC\vcpackages\Itanium.VCPlatform.Express.config"
 
 REM build tahoe-lafs
-c:\python27\python.exe setup.py build
+%PYTHON% setup.py build
 
 REM zip the tahoe directory and Python MSI installer
 REM first copy everything into a temp directory