Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: installer/install.cmd

Issue 6202981292703744: Whole installer (Closed)
Patch Set: Created June 24, 2014, 7:27 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 @echo off
2 setlocal
3 set PACKAGE=%1
4 if "%PACKAGE%"=="-h" goto Help
5 if "%PACKAGE%"=="--help" goto Help
6 if "%PACKAGE%"=="help" goto Help
7
8 :ArgArch
9 shift
10 set ARCH=%1
11 if "%ARCH%"=="ia32" goto ArgArchEnd
12 if "%ARCH%"=="x64" goto ArgArchEnd
13 if NOT "%ARCH%"=="" goto ArgArchError
14 set ARCH=x64
15 goto ArgArchEnd
16 :ArgArchError
17 echo Unrecognized architecture argument '%ARCH%' 1>&2
18 exit /b 1
19 :ArgArchEnd
20
21 :ArgPackage
22 if NOT "%PACKAGE%"=="abp" goto ArgPackage1
23 set MSI=adblockplusie-FINAL-%ARCH%.msi
24 set LOG=install-adblockplusie.log
25 goto GoMsiexec
26 :ArgPackage1
27 if NOT "%PACKAGE%"=="test" goto ArgPackage2
28 set MSI=test-installer-lib.msi
29 set LOG=install-test.log
30 goto GoMsiexec
31 :ArgPackage2
32 if NOT "%PACKAGE%"=="setup" goto ArgPackageError
33 goto goSetup
34 :ArgPackageError
35 echo Unrecognized package argument '%PACKAGE%' 1>&2
36 exit /b 1
37
38 :GoMsiexec
39 pushd %~dp0%
40 cd build\%ARCH%
41 echo on
42 msiexec /i %MSI% /l*v %LOG%
43 @echo off
44 popd
45 exit /b
46
47 :GoSetup
48 pushd %~dp0%
49 cd build\common
50 echo on
51 echo .\setup-abp-ie
52 @echo off
53 popd
54 exit /b
55
56 :Help
57 echo install - install ABP-IE from the build directory
58 echo.
59 echo usage: install [-h] ^<package^> ^<architecture^>
60 echo package - either 'abp' or 'test'
61 echo architecture - either 'ia32' or 'x64'
62 echo ^-h ^| --help - show this help message only
63 echo.
64 exit /b
65
OLDNEW
« build_release.py ('K') | « installer/googletest.gyp ('k') | installer/installer.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld