Changeset 52183 in webkit
- Timestamp:
- Dec 15, 2009 4:51:47 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r52180 r52183 1 2009-12-15 Yaar Schnitman <yaar@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 update-webkit-chromium to auto-install gclient 6 7 https://bugs.webkit.org/show_bug.cgi?id=32587 8 9 * Scripts/update-webkit-chromium: 10 1 11 2009-12-15 Eric Seidel <eric@webkit.org> 2 12 -
trunk/WebKitTools/Scripts/update-webkit-chromium
r51494 r52183 29 29 # Update script for the WebKit Chromium Port. 30 30 31 # Check if gclient is installed. 32 if (not `gclient --version`) { 33 print STDERR "gclient is required for updating chromium dependencies.\n"; 34 print STDERR "Install depot_tools and add gclient to the environment\n"; 35 print STDERR "path. For more information, refer to:\n"; 36 print STDERR "http://dev.chromium.org/developers/how-tos/install-gclient\n"; 37 die; 31 chdir("WebKit/chromium") or die $!; 32 33 # Find gclient or install it. 34 my $gclientPath; 35 if (`gclient --version`) { 36 $gclientPath = 'gclient'; 37 } elsif (-e 'depot_tools/gclient') { 38 $gclientPath = 'depot_tools/gclient'; 39 } else { 40 print "Installing chromium's depot_tools...\n"; 41 system("svn co http://src.chromium.org/svn/trunk/tools/depot_tools") == 0 or die $1; 42 $gclientPath = 'depot_tools/gclient'; 38 43 } 39 44 40 chdir("WebKit/chromium") or die $!;41 45 if (! -e ".gclient") { 42 46 # If .gclient configuration file doesn't exist, create it. 43 47 print "Configuring gclient...\n"; 44 system( "gclient",48 system($gclientPath, 45 49 "config", 46 50 "--spec=solutions=[{'name':'./','url':None}]") == 0 or die $!; … … 49 53 # Execute gclient sync. 50 54 print "Updating chromium port dependencies using gclient...\n"; 51 system( "gclient", "sync", "--force") == 0 or die $!;55 system($gclientPath, "sync", "--force") == 0 or die $!;
Note: See TracChangeset
for help on using the changeset viewer.