diff options
author | Sergio Ahumada <sergio.ahumada@nokia.com> | 2011-04-28 13:25:41 +0200 |
---|---|---|
committer | Sergio Ahumada <sergio.ahumada@nokia.com> | 2011-04-28 13:25:41 +0200 |
commit | a3209ceba8fc7e3aecfa4776ed1075a46416d407 (patch) | |
tree | dc8a1245a82001e934fee858a75859c2700e44f0 /init-repository | |
parent | 837d5a3cb6bc18bd01a3d9d6a818f7b1f3a46471 (diff) |
Add -no-update option to init script
Reviewed-by: axis
Diffstat (limited to 'init-repository')
-rwxr-xr-x | init-repository | 8 |
1 files changed, 7 insertions, 1 deletions
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"); +} |