Merge remote-tracking branch 'gerrit/stable' into release

This commit is contained in:
Oswald Buddenhagen
2014-04-10 11:29:23 +02:00
33 changed files with 82 additions and 38 deletions

View File

@@ -12,9 +12,6 @@
# One task per entry. Remember space after colon.
#Task-number:
#
# Solicit reviewers. They still need to use the Gerrit frontend.
#Reviewed-by:
#
# ==[ Please wrap at 72 characters ]===================================|
#
# Remember to read http://wiki.qt-project.org/Commit_Policy

6
.gitmodules vendored
View File

@@ -28,9 +28,6 @@
[submodule "qtdoc"]
path = qtdoc
url = ../qtdoc.git
[submodule "qlalr"]
path = qlalr
url = ../qlalr.git
[submodule "qtrepotools"]
path = qtrepotools
url = ../qtrepotools.git
@@ -103,3 +100,6 @@
[submodule "qtenginio"]
path = qtenginio
url = ../qtenginio.git
[submodule "qtwebsockets"]
path = qtwebsockets
url = ../qtwebsockets.git

View File

@@ -70,6 +70,12 @@ B<Global options:>
Force initialization (even if the submodules are already checked out).
=item --force-hooks
Force initialization of hooks (even if there are already hooks in checked out
submodules).
=item --quiet, -q
Be quiet. Will exit cleanly if the repository is already initialized.
@@ -200,7 +206,6 @@ my %PROTOCOLS = (
my %GERRIT_REPOS = map { $_ => "qt/$_" } qw(
qt3d
qt5
qlalr
qtactiveqt
qtandroidextras
qtbase
@@ -231,6 +236,7 @@ my %GERRIT_REPOS = map { $_ => "qt/$_" } qw(
qtwayland
qtwebkit
qtwebkit-examples
qtwebsockets
qtwinextras
qtx11extras
qtxmlpatterns
@@ -243,6 +249,7 @@ my @DEFAULT_REPOS = qw(
qtconnectivity
qtdeclarative
qtdoc
qtenginio
qtgraphicaleffects
qtimageformats
qtmacextras
@@ -258,6 +265,7 @@ my @DEFAULT_REPOS = qw(
qtsvg
qttools
qttranslations
qtwebsockets
qtwebkit
qtwebkit-examples
qtwinextras
@@ -310,6 +318,7 @@ sub parse_arguments
'codereview-username' => "",
'detach-alternates' => 0 ,
'force' => 0 ,
'force-hooks' => 0 ,
'ignore-submodules' => 0 ,
'mirror-url' => "",
'protocol' => "",
@@ -322,7 +331,8 @@ sub parse_arguments
'alternates=s' => \$self->{qw{ alternates }},
'codereview-username=s' => \$self->{qw{ codereview-username }},
'copy-objects' => \$self->{qw{ detach-alternates }},
'force' => \$self->{qw{ force }},
'force|f' => \$self->{qw{ force }},
'force-hooks' => \$self->{qw{ force-hooks }},
'ignore-submodules' => \$self->{qw{ ignore-submodules }},
'mirror=s' => \$self->{qw{ mirror-url }},
'quiet' => \$self->{qw{ quiet }},
@@ -574,6 +584,38 @@ sub git_clone_one_submodule
return;
}
sub ensure_link
{
my ($self, $src, $tgt) = @_;
return if (!$self->{'force-hooks'} and -f $tgt);
unlink($tgt); # In case we have a dead symlink or pre-existing hook
print "Aliasing $src\n as $tgt ...\n" if (!$self->{quiet});
return if eval { symlink($src, $tgt) };
# Windows doesn't do (proper) symlinks. As the post_commit script needs
# them to locate itself, we write a forwarding script instead.
open SCRIPT, ">".$tgt or die "Cannot create forwarding script $tgt: $!\n";
print SCRIPT "#!/bin/sh\nexec `dirname \$0`/$src \"\$\@\"\n";
close SCRIPT;
}
sub git_install_hooks
{
my ($self) = @_;
return if (!-d 'qtrepotools/git-hooks');
chomp(my @modules = `git submodule foreach :`);
push @modules, "";
for my $module (@modules) {
$module =~ s,^Entering \'([^\']+)\'$,$1/,;
my $rel = $module;
$rel =~ s,[^/]+,..,g;
$rel .= "../../qtrepotools/git-hooks/";
$self->ensure_link($rel.'gerrit_commit_msg_hook', $module.'.git/hooks/commit-msg');
$self->ensure_link($rel.'git_post_commit_hook', $module.'.git/hooks/post-commit');
}
}
sub run
{
my ($self) = @_;
@@ -595,6 +637,8 @@ sub run
$self->git_add_remotes('qt5');
$self->git_install_hooks;
return;
}

1
qlalr

Submodule qlalr deleted from a803a5c214

7
qt.pro
View File

@@ -54,11 +54,13 @@ defineTest(addModule) {
# users responsibility to ensure that all needed dependencies exist, or
# it may not build.
ANDROID_EXTRAS =
android: ANDROID_EXTRAS = qtandroidextras
addModule(qtbase)
addModule(qtandroidextras, qtbase)
addModule(qtmacextras, qtbase)
addModule(qtx11extras, qtbase)
addModule(qlalr, qtbase)
addModule(qtsvg, qtbase)
addModule(qtxmlpatterns, qtbase)
addModule(qtdeclarative, qtbase, qtsvg qtxmlpatterns)
@@ -71,7 +73,7 @@ addModule(qtjsondb, qtdeclarative)
addModule(qtsystems, qtbase, qtdeclarative)
addModule(qtlocation, qtbase, qt3d qtsystems qtmultimedia)
addModule(qtsensors, qtbase, qtdeclarative)
addModule(qtconnectivity, qtbase, qtdeclarative)
addModule(qtconnectivity, qtbase $$ANDROID_EXTRAS, qtdeclarative)
addModule(qtfeedback, qtdeclarative, qtmultimedia)
addModule(qtpim, qtdeclarative, qtjsondb)
addModule(qtwebkit, qtdeclarative, qtlocation qtmultimedia qtsensors, WebKit.pro)
@@ -85,6 +87,7 @@ addModule(qtdocgallery, qtdeclarative, qtjsondb)
!win32:!mac:addModule(qtwayland, qtbase, qtdeclarative)
addModule(qtserialport, qtbase)
addModule(qtenginio, qtdeclarative)
addModule(qtwebsockets, qtbase, qtdeclarative)
addModule(qttranslations, qttools)
addModule(qtdoc, qtdeclarative)
addModule(qtqa, qtbase)

2
qtbase

Submodule qtbase updated: 2b0f02aa5c...c92fead433

2
qtdoc

Submodule qtdoc updated: 19245e88ba...bd11d74a66

2
qtqa

Submodule qtqa updated: afafbfafd9...e4fe8a254c

2
qtsvg

Submodule qtsvg updated: ae68091e0d...bacf4858ce

Submodule qttools updated: 80c6a5ea7f...8e55ee3f61

1
qtwebsockets Submodule

Submodule qtwebsockets added at a69877e8c6