Changeset 52183 in webkit


Ignore:
Timestamp:
Dec 15, 2009 4:51:47 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-15 Yaar Schnitman <yaar@chromium.org>

Reviewed by Darin Fisher.

update-webkit-chromium to auto-install gclient

https://bugs.webkit.org/show_bug.cgi?id=32587

  • Scripts/update-webkit-chromium:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r52180 r52183  
     12009-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
    1112009-12-15  Eric Seidel  <eric@webkit.org>
    212
  • trunk/WebKitTools/Scripts/update-webkit-chromium

    r51494 r52183  
    2929# Update script for the WebKit Chromium Port.
    3030
    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;
     31chdir("WebKit/chromium") or die $!;
     32
     33# Find gclient or install it.
     34my $gclientPath;
     35if (`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';
    3843}
    3944
    40 chdir("WebKit/chromium") or die $!;
    4145if (! -e ".gclient") {
    4246    # If .gclient configuration file doesn't exist, create it.
    4347    print "Configuring gclient...\n";
    44     system("gclient",
     48    system($gclientPath,
    4549           "config",
    4650           "--spec=solutions=[{'name':'./','url':None}]") == 0 or die $!;
     
    4953# Execute gclient sync.
    5054print "Updating chromium port dependencies using gclient...\n";
    51 system("gclient", "sync", "--force") == 0 or die $!;
     55system($gclientPath, "sync", "--force") == 0 or die $!;
Note: See TracChangeset for help on using the changeset viewer.