From e8fd62c3864af15e907bb4392f90e7506b05619d Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Mon, 11 Jul 2011 14:40:35 +1000 Subject: Allow initial checkout of V8 with the Brisbane mirror Change-Id: Iaaaa88884e0a793218e2e307bd9e56067760c514 Reviewed-on: http://codereview.qt.nokia.com/1393 Reviewed-by: Qt Sanity Bot Reviewed-by: Aaron Kennedy Reviewed-by: Alan Alpert --- init-repository | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'init-repository') diff --git a/init-repository b/init-repository index 37995ec9..3620c779 100755 --- a/init-repository +++ b/init-repository @@ -254,6 +254,9 @@ my $BNE_MIRROR_URL_BASE my $BNE_MIRROR_WEBKIT_URL = 'git://bq-git.apac.nokia.com/qtsoftware/research/gitorious-org-webkit-qtwebkit-mirror.git'; +my $BNE_MIRROR_V8_URL + = 'git://bq-git.apac.nokia.com/github/v8.git'; + my $BER_MIRROR_URL_BASE = 'git://ber-git.europe.nokia.com/qt/'; @@ -300,6 +303,7 @@ sub parse_arguments 'ignore-submodules' => 0 , 'mirror-url' => "", 'mirror-webkit-url' => "", + 'mirror-v8-url' => "", 'nokia-developer' => 0 , 'protocol' => "", 'update' => 1 , @@ -329,6 +333,7 @@ sub parse_arguments $self->{'nokia-developer'} = 1; $self->{'protocol'} = 'internal'; $self->{'mirror-url'} = $BNE_MIRROR_URL_BASE; + $self->{'mirror-v8-url'} = $BNE_MIRROR_V8_URL; $self->{'mirror-webkit-url'} = $BNE_MIRROR_WEBKIT_URL; $self->{'ignore-submodules'} = 1; }, @@ -539,6 +544,7 @@ sub git_clone_one_submodule my $alternates = $self->{ 'alternates' }; my $mirror_url = $self->{ 'mirror-url' }; my $mirror_webkit_url = $self->{ 'mirror-webkit-url' }; + my $mirror_v8_url = $self->{ 'mirror-v8-url' }; # `--reference FOO' args for the clone, if any. my @reference_args; @@ -601,6 +607,20 @@ sub git_clone_one_submodule if ($submodule eq "qtdeclarative") { #Extra step needed to setup declarative $self->exe('git', 'submodule', 'init'); + if ($do_clone and $mirror_v8_url) { + my @configresult = qx(git config -l); + my $v8url; + foreach my $line (@configresult) { + # Example line: submodule.qtqa.url=git://gitorious.org/qt/qtqa.git + next if ($line !~ /submodule.src\/3rdparty\/v8.url=(.*)/); + $v8url = $1; + } + chdir('src/3rdparty/') or confess "chdir $submodule/src/3rdparty: $OS_ERROR"; + $self->exe('git', 'clone', $mirror_v8_url, 'v8'); + chdir('v8') or confess "chdir $submodule/src/3rdparty/v8: $OS_ERROR"; + $self->exe('git', 'config', 'remote.origin.url', $v8url); + chdir('../../..') or confess "cd ../../..: $OS_ERROR"; + } $self->exe('git', 'submodule', 'update'); } -- cgit v1.2.3