mirror of
git://code.qt.io/qt/qt5.git
synced 2025-12-29 11:25:38 +08:00
Compare commits
40 Commits
v5.3.0-alp
...
5.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a7f9e8ef4 | ||
|
|
4269353390 | ||
|
|
22ade44104 | ||
|
|
4f72a097fe | ||
|
|
ae43001e11 | ||
|
|
36e921c884 | ||
|
|
5bb3462029 | ||
|
|
55c50d8148 | ||
|
|
d244c1196d | ||
|
|
21108529f9 | ||
|
|
63890f78d0 | ||
|
|
3192236ddf | ||
|
|
f4479c349b | ||
|
|
620dc10e25 | ||
|
|
3fb8e1301a | ||
|
|
64f379141c | ||
|
|
c9eb01ba38 | ||
|
|
25acd00fed | ||
|
|
055e282245 | ||
|
|
56a5eee34a | ||
|
|
2c0f1cfb71 | ||
|
|
4fadcf5d88 | ||
|
|
fb66951776 | ||
|
|
55e55c405f | ||
|
|
982ee75828 | ||
|
|
06d2b3a720 | ||
|
|
67400663f8 | ||
|
|
b065abc7fd | ||
|
|
e045c53198 | ||
|
|
6d47ef2b92 | ||
|
|
74af16bd0d | ||
|
|
556a3377ff | ||
|
|
8ce1937883 | ||
|
|
e198c124d3 | ||
|
|
7704ce065d | ||
|
|
592415857c | ||
|
|
e169f588d8 | ||
|
|
6380ce86f1 | ||
|
|
9372697001 | ||
|
|
ed6175da93 |
@@ -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.
|
||||
@@ -243,6 +249,7 @@ my @DEFAULT_REPOS = qw(
|
||||
qtconnectivity
|
||||
qtdeclarative
|
||||
qtdoc
|
||||
qtenginio
|
||||
qtgraphicaleffects
|
||||
qtimageformats
|
||||
qtmacextras
|
||||
@@ -311,6 +318,7 @@ sub parse_arguments
|
||||
'codereview-username' => "",
|
||||
'detach-alternates' => 0 ,
|
||||
'force' => 0 ,
|
||||
'force-hooks' => 0 ,
|
||||
'ignore-submodules' => 0 ,
|
||||
'mirror-url' => "",
|
||||
'protocol' => "",
|
||||
@@ -323,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 }},
|
||||
@@ -575,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) = @_;
|
||||
@@ -596,6 +637,8 @@ sub run
|
||||
|
||||
$self->git_add_remotes('qt5');
|
||||
|
||||
$self->git_install_hooks;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
2
qt.pro
2
qt.pro
@@ -65,7 +65,7 @@ addModule(qtsvg, qtbase)
|
||||
addModule(qtxmlpatterns, qtbase)
|
||||
addModule(qtdeclarative, qtbase, qtsvg qtxmlpatterns)
|
||||
addModule(qtquickcontrols, qtdeclarative)
|
||||
addModule(qtmultimedia, qtdeclarative)
|
||||
addModule(qtmultimedia, qtbase, qtdeclarative)
|
||||
addModule(qtwinextras, qtbase, qtdeclarative qtmultimedia)
|
||||
addModule(qtactiveqt, qtbase)
|
||||
addModule(qt3d, qtdeclarative)
|
||||
|
||||
Submodule qtactiveqt updated: 2e44efa505...ace322643b
Submodule qtandroidextras updated: 69f8652622...a441d816a0
2
qtbase
2
qtbase
Submodule qtbase updated: 45e17d0cc7...f1bce3bc17
Submodule qtconnectivity updated: c969ca25b2...8a33a9b43d
Submodule qtdeclarative updated: 7d25db8ff4...a67aa6abc6
2
qtdoc
2
qtdoc
Submodule qtdoc updated: 15c0c98d44...450060fac2
Submodule qtenginio updated: 136ee0aa5d...4ee5a2f13a
Submodule qtgraphicaleffects updated: 9b1883d2e9...ca99f8c336
Submodule qtimageformats updated: 37e34e1f36...85e621e3ec
Submodule qtlocation updated: e656c31890...6e39a79010
Submodule qtmacextras updated: 63ea1f8b4c...9af049f151
Submodule qtmultimedia updated: d964388b38...20da381608
2
qtqa
2
qtqa
Submodule qtqa updated: 5f4a961316...130c512d14
2
qtquick1
2
qtquick1
Submodule qtquick1 updated: 3eeaf98712...3074a3a8fe
Submodule qtquickcontrols updated: 44e9533361...45484e3f70
Submodule qtrepotools updated: e3345e6cb1...4f3bd722c8
2
qtscript
2
qtscript
Submodule qtscript updated: b95d7d3425...11ca34818a
Submodule qtsensors updated: 2b67b50af1...f33363d292
Submodule qtserialport updated: c2b0416475...286d64c202
2
qtsvg
2
qtsvg
Submodule qtsvg updated: cd0843d4d7...66444e54dd
2
qttools
2
qttools
Submodule qttools updated: 2e74382c09...32bb805deb
Submodule qttranslations updated: a104c706a4...b9a22c997c
2
qtwebkit
2
qtwebkit
Submodule qtwebkit updated: 6cec10879f...bc8af0ec15
Submodule qtwebkit-examples updated: 0a23233f9c...9fc54596d8
Submodule qtwebsockets updated: 2bf36986a1...ca03374390
Submodule qtwinextras updated: 863cb45550...b128803199
Submodule qtx11extras updated: d229decb2d...61e0824f24
Submodule qtxmlpatterns updated: 943be69584...10ddd5a745
Reference in New Issue
Block a user