diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-06-22 01:23:17 +1000 |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-06-22 01:23:17 +1000 |
commit | f89988773851d376e432a677695c3f19e76c5943 (patch) | |
tree | 0ee01e0607ad1055083e7a422cbe2c5f81452cec /init-repository | |
parent | 865e04b617304d7bc0f3befa77214a033ce6ae23 (diff) | |
parent | 8484878f255b99e84ac0416a319758df408b3640 (diff) |
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt5-staging
* 'master' of git://scm.dev.nokia.troll.no/qt/qt5-staging:
Have init-repository init nested submodule in qtdeclarative
Add --berlin to set up WebKit mirror accordingly.
Diffstat (limited to 'init-repository')
-rwxr-xr-x | init-repository | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/init-repository b/init-repository index 819e042d..c41f1c9c 100755 --- a/init-repository +++ b/init-repository @@ -120,6 +120,11 @@ Switch to internal Nokia URLs. Switch to internal Nokia URLs and make use of the Brisbane git mirrors. (Implies `--mirror' and `--mirror-webkit'). +=item --berlin + +Switch to internal Nokia URLs and make use of the Berlin git mirrors. +(Implies `--mirror' and `--mirror-webkit'). + =item --ssh @@ -231,6 +236,13 @@ 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 $BER_MIRROR_URL_BASE + = 'git://ber-git.europe.nokia.com/qt/'; + +my $BER_MIRROR_WEBKIT_URL + = 'git://ber-git.europe.nokia.com/qtwebkit/qtwebkit.git'; + + sub new { my ($class, @arguments) = @_; @@ -301,6 +313,13 @@ sub parse_arguments $self->{'ignore-submodules'} = 1; }, + 'berlin|berlin-nokia-developer' => sub { + $self->{'nokia-developer'} = 1; + $self->{'protocol'} = 'internal'; + $self->{'mirror-url'} = $BER_MIRROR_URL_BASE; + $self->{'mirror-webkit-url'} = $BER_MIRROR_WEBKIT_URL; + }, + 'nokia-developer' => sub { $self->{'nokia-developer'} = 1; $self->{'protocol'} = 'internal'; @@ -560,6 +579,11 @@ sub git_clone_one_submodule unlink($alternates_path) || confess "unlink $alternates_path: $OS_ERROR"; } + if ($submodule eq "qtdeclarative") { #Extra step needed to setup declarative + $self->exe('git', 'submodule', 'init'); + $self->exe('git', 'submodule', 'update'); + } + chdir("..") or confess "cd ..: $OS_ERROR"; return; |