X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=sync-all;h=6ff06cce8d91e83f18d76ab957ac45fc30f13322;hb=f298598973ca51134074c8801f062382a86328ed;hp=728c725d4c8d0d8489e777df16b6ee69905f3f09;hpb=9586648193284185c6ff1c75abd33071376fd7f6;p=ghc-hetmet.git diff --git a/sync-all b/sync-all index 728c725..6ff06cc 100755 --- a/sync-all +++ b/sync-all @@ -303,7 +303,6 @@ sub scmall { } elsif ($command =~ /^(?:pus|push)$/) { @scm_args = "push"; - $want_remote_repo = 1; } elsif ($command =~ /^(?:pul|pull)$/) { @scm_args = "pull"; @@ -312,6 +311,9 @@ sub scmall { elsif ($command =~ /^(?:g|ge|get)$/) { # Skip any repositories we have not included the tag for if (not defined($tags{$tag})) { + $tags{$tag} = 0; + } + if ($tags{$tag} == 0) { next; } @@ -362,6 +364,12 @@ sub scmall { # Hack around 'git grep' failing if there are no matches $ignore_failure = 1; } + elsif ($command =~ /^reset$/) { + @scm_args = "reset"; + } + elsif ($command =~ /^config$/) { + @scm_args = "config"; + } else { die "Unknown command: $command"; } @@ -417,6 +425,8 @@ Supported commands: * remote rm * remote set-url [--push] * grep + * reset + * config Available package-tags are: END @@ -477,9 +487,11 @@ sub main { } # -- says we grab the libs tagged 'tag' with # 'get'. It has no effect on the other commands. - elsif ($arg =~ m/^--/) { - $arg =~ s/^--//; - $tags{$arg} = 1; + elsif ($arg =~ m/^--no-(.*)$/) { + $tags{$1} = 0; + } + elsif ($arg =~ m/^--(.*)$/) { + $tags{$1} = 1; } else { unshift @_, $arg;