Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(821)

Side by Side Diff: tools/win/copy-installer.bat

Issue 10825342: Do not compress chrome.7z into chrome.packed.7z for developer (component) builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 ECHO OFF 1 ECHO OFF
2 2
3 REM Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 REM Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 REM Use of this source code is governed by a BSD-style license that can be 4 REM Use of this source code is governed by a BSD-style license that can be
5 REM found in the LICENSE file. 5 REM found in the LICENSE file.
6 6
7 REM Copies an installer and symbols from a build directory on a network share 7 REM Copies an installer and symbols from a build directory on a network share
8 REM into the directory \[out|build]\[Debug|Release] on the current drive. 8 REM into the directory \[out|build]\[Debug|Release] on the current drive.
9 REM 9 REM
10 REM Usage: 10 REM Usage:
11 REM \\build.share\<path_to_checkout>\src\tools\win\copy-installer.bat 11 REM \\build.share\<path_to_checkout>\src\tools\win\copy-installer.bat
12 REM 12 REM
13 REM By default, the script will copy the Debug build in the tree, falling back 13 REM By default, the script will copy the Debug build in the tree, falling back
14 REM to the Release build if one is not found. Similarly, the ninja output 14 REM to the Release build if one is not found. Similarly, the ninja output
15 REM directory is preferred over the devenv output directory. Specify 15 REM directory is preferred over the devenv output directory. Specify
16 REM "out|build" and/or "Debug|Release" (case matters) on the command line in 16 REM "out|build" and/or "Debug|Release" (case matters) on the command line in
17 REM any order to influence selection. The defaults for location and build type 17 REM any order to influence selection. The defaults for location and build type
18 REM can also be overridden in a given build tree by creating a 18 REM can also be overridden in a given build tree by creating a
19 REM "copy-installer.cfg" file alongside the .gclient file that sets the OUTPUT 19 REM "copy-installer.cfg" file alongside the .gclient file that sets the OUTPUT
20 REM and/or BUILDTYPE variables. 20 REM and/or BUILDTYPE variables.
21 REM 21 REM
22 REM Install Robocopy for superior performance on Windows XP if desired (it is 22 REM Install Robocopy for superior performance on Windows XP if desired (it is
(...skipping 20 matching lines...) Expand all
43 IF "%OUTPUT%%BUILDTYPE%"=="" ( 43 IF "%OUTPUT%%BUILDTYPE%"=="" (
44 ECHO No build found to copy. 44 ECHO No build found to copy.
45 EXIT 1 45 EXIT 1
46 ) 46 )
47 47
48 SET FROM=%FROM%\%OUTPUT%\%BUILDTYPE% 48 SET FROM=%FROM%\%OUTPUT%\%BUILDTYPE%
49 SET TO=\%OUTPUT%\%BUILDTYPE% 49 SET TO=\%OUTPUT%\%BUILDTYPE%
50 50
51 REM Figure out what files to copy based on the component type (shared/static). 51 REM Figure out what files to copy based on the component type (shared/static).
52 IF EXIST "%FROM%\base.dll" ( 52 IF EXIST "%FROM%\base.dll" (
53 SET TOCOPY=*.pdb setup.exe setup.exe.manifest chrome.packed.7z *.dll 53 SET TOCOPY=*.pdb setup.exe setup.exe.manifest chrome*.7z *.dll
robertshield 2012/08/14 16:45:28 Ideally this should copy chrome.packed.7z if it ex
gab 2012/08/14 19:15:37 Done.
54 SET INSTALLER=setup.exe 54 SET INSTALLER=setup.exe
55 ) ELSE ( 55 ) ELSE (
56 SET TOCOPY=*.pdb mini_installer.exe 56 SET TOCOPY=*.pdb mini_installer.exe
57 SET INSTALLER=mini_installer.exe 57 SET INSTALLER=mini_installer.exe
58 ) 58 )
59 59
60 CALL :_copyfiles 60 CALL :_copyfiles
61 61
62 REM incremental_chrome_dll=1 puts chrome_dll.pdb into the "initial" dir. 62 REM incremental_chrome_dll=1 puts chrome_dll.pdb into the "initial" dir.
63 IF EXIST "%FROM%\initial" ( 63 IF EXIST "%FROM%\initial" (
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 ) 114 )
115 GOTO :EOF 115 GOTO :EOF
116 116
117 REM We can't use a for..in..do loop since we have wildcards, so we make a call 117 REM We can't use a for..in..do loop since we have wildcards, so we make a call
118 REM to this with the files to copy. 118 REM to this with the files to copy.
119 :_xcopy_hack 119 :_xcopy_hack
120 SHIFT 120 SHIFT
121 IF "%0"=="" GOTO :EOF 121 IF "%0"=="" GOTO :EOF
122 xcopy "%FROM%\%0" "%TO%" /d /y 122 xcopy "%FROM%\%0" "%TO%" /d /y
123 GOTO _xcopy_hack 123 GOTO _xcopy_hack
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698