X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=darcs-all;h=9477d463d094ea76fdad1c78931344960d6868a2;hb=c0a63727d0d59d95bbff8e0b5426714d9269bbb7;hp=483cd9df8f350fe79759a083ccc258432554a607;hpb=29e0999a73665a37c0c3fd311ac961f81c50bb92;p=ghc-hetmet.git diff --git a/darcs-all b/darcs-all index 483cd9d..9477d46 100644 --- a/darcs-all +++ b/darcs-all @@ -2,6 +2,25 @@ use strict; +# Usage: +# +# ./darcs-all [-q] [-s] [--dph] [--nofib] [--testsuite] get [darcs get flags] +# This gets the GHC core repos, if they do not already exist. +# -q says to be quite, and -s to be silent. +# --dph, --nofib, --testsuite also get the dph library, nofib and +# testsuite repos respectively +# The darcs get flag you are most likely to want is --complete. By +# default we pass darcs the --partial flag. +# +# ./darcs-all [-q] [-s] cmd [darcs cmd flags] +# This runs the darcs "cmd" command, with any flags you give, in all +# of the repos you have checked out. e.g. +# ./darcs-all pull +# ./darcs-all -q send --dry-run +# -q says to be quite, and -s to be silent. + +$| = 1; # autoflush stdout after each print, to avoid output after die + # Figure out where to get the other repositories from, # based on where this GHC repo came from. my $defaultrepo = `cat _darcs/prefs/defaultrepo`; @@ -114,7 +133,12 @@ sub darcsget { $path = "$defaultrepo_base/$localpath"; } else { - $path = "$defaultrepo_base/$remotepath"; + if ($remotepath =~ /^http:/) { + $path = $remotepath; + } + else { + $path = "$defaultrepo_base/$remotepath"; + } } if (($tag eq "") || defined($tags{$tag})) { @@ -152,11 +176,6 @@ sub main { elsif ($arg eq "--dph") { $tags{"dph"} = 1; } - # --extra says we grab the extra libs with 'get'. - # It has no effect on the other commands. - elsif ($arg eq "--extra") { - $tags{"extralibs"} = 1; - } # --nofib tells get to also grab the nofib repo. # It has no effect on the other commands. elsif ($arg eq "--nofib") {