From a3209ceba8fc7e3aecfa4776ed1075a46416d407 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Thu, 28 Apr 2011 13:25:41 +0200 Subject: [PATCH] Add -no-update option to init script Reviewed-by: axis --- init-repository | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init-repository b/init-repository index 3934439a..34b78154 100755 --- a/init-repository +++ b/init-repository @@ -44,6 +44,7 @@ my $force = 0; my $quiet = 0; my $nokia_developer = 0; my $no_webkit = 0; +my $no_update = 0; sub system_v { @@ -63,6 +64,7 @@ sub printUsage print("\tinitialized\n"); print("-nokia-developer Switch to internal Nokia URLs.\n"); print("-no-webkit Skip webkit and webkit examples submodules.\n"); + print("-no-update Skip the git submodule update command.\n"); } while (@ARGV) { @@ -78,6 +80,8 @@ while (@ARGV) { exit 0; } elsif ($arg eq "-no-webkit") { $no_webkit = 1; + } elsif ($arg eq "-no-update") { + $no_update = 1; } else { die("Illegal argument: $arg"); } @@ -124,4 +128,6 @@ if ($nokia_developer) { } } -system_v("git submodule update"); +unless ($no_update){ + system_v("git submodule update"); +}