aboutsummaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository41
1 files changed, 37 insertions, 4 deletions
diff --git a/init-repository b/init-repository
index 34e18ac9..3bd600ff 100755
--- a/init-repository
+++ b/init-repository
@@ -91,6 +91,8 @@ git repository.
Only initialize the specified subset of modules given as the argument. Specified
modules must already exist in .gitmodules.
+The string "all" results in cloning all known modules. The default is the set of
+maintained modules.
=item --no-update
@@ -217,27 +219,56 @@ my %GERRIT_REPOS = map { $_ => "qt/$_" } qw(
qtconnectivity
qtdeclarative
qtdoc
+ qtdocgallery
qtfeedback
qtgraphicaleffects
qtimageformats
+ qtjsondb
qtjsbackend
qtlocation
qtmultimedia
qtpim
qtqa
qtquick1
+ qtquickcontrols
qtrepotools
qtscript
qtsensors
+ qtserialport
qtsvg
qtsystems
qttools
qttranslations
qtwayland
qtwebkit
- qtwebkit-examples-and-demos
+ qtwebkit-examples
+ qtx11extras
qtxmlpatterns
+);
+
+my @DEFAULT_REPOS = qw(
+ qtactiveqt
+ qtbase
+ qtdeclarative
+ qtdoc
+ qtgraphicaleffects
+ qtimageformats
+ qtjsbackend
+ qtmultimedia
+ qtqa
+ qtquick1
+ qtquickcontrols
+ qtrepotools
+ qtscript
+ qtsensors
+ qtserialport
+ qtsvg
+ qttools
+ qttranslations
+ qtwebkit
+ qtwebkit-examples
qtx11extras
+ qtxmlpatterns
);
my $GERRIT_SSH_BASE
@@ -288,7 +319,7 @@ sub parse_arguments
'protocol' => "",
'update' => 1 ,
'webkit' => 1 ,
- 'module-subset' => "",
+ 'module-subset' => join(",", @DEFAULT_REPOS),
);
GetOptionsFromArray(\@args,
@@ -329,7 +360,9 @@ sub parse_arguments
# Replace any double trailing slashes from end of mirror
$self->{'mirror-url'} =~ s{//+$}{/};
- if ($self->{'module-subset'}) {
+ if ($self->{'module-subset'} eq "all") {
+ $self->{'module-subset'} = "";
+ } else {
$self->{'module-subset'} = {
map { $_ => 1 } split(qr{,}, $self->{'module-subset'})
};
@@ -386,7 +419,7 @@ sub git_disable_webkit_submodule
my ($self) = @_;
$self->exe('git', 'config', '--remove', 'submodule.qtwebkit');
- $self->exe('git', 'config', '--remove', 'submodule.qtwebkit-examples-and-demos');
+ $self->exe('git', 'config', '--remove', 'submodule.qtwebkit-examples');
return;
}