aboutsummaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-04-28 11:46:22 +1000
committeraxis <qt-info@nokia.com>2011-04-28 10:21:09 +0200
commit82ca078d06d156cb113874c916c95b8862227157 (patch)
tree445853ab5090ba212e6f2269c54764774e7312d5 /init-repository
parente129d300b301258c95984ec73446e7ba683fe683 (diff)
Add -no-webkit to init script
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository8
1 files changed, 8 insertions, 0 deletions
diff --git a/init-repository b/init-repository
index 3e47856f..3934439a 100755
--- a/init-repository
+++ b/init-repository
@@ -43,6 +43,7 @@
my $force = 0;
my $quiet = 0;
my $nokia_developer = 0;
+my $no_webkit = 0;
sub system_v
{
@@ -61,6 +62,7 @@ sub printUsage
print("-q\tQuiet operation. Will exit cleanly if repository is already\n");
print("\tinitialized\n");
print("-nokia-developer Switch to internal Nokia URLs.\n");
+ print("-no-webkit Skip webkit and webkit examples submodules.\n");
}
while (@ARGV) {
@@ -74,6 +76,8 @@ while (@ARGV) {
} elsif ($arg eq "-h" || $arg eq "--help") {
printUsage();
exit 0;
+ } elsif ($arg eq "-no-webkit") {
+ $no_webkit = 1;
} else {
die("Illegal argument: $arg");
}
@@ -98,6 +102,10 @@ if (`git config --get submodule.qtbase.url`) {
my $init_args = "";
$init_args = "-q" if ($quiet);
system_v("git submodule init $init_args");
+if ($no_webkit){
+ system_v("git config --remove submodule.qtwebkit");
+ system_v("git config --remove submodule.qtwebkit-examples-and-demos");
+}
if ($nokia_developer) {
my @configresult = `git config -l`;