X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=darcs-all;h=6c8b406cf3816d9cec4e254233f5063fc8b54205;hb=5a82864902fc01cf8eee847fcf4ee88e74aa535d;hp=b1451b173f22dd1bd8097d3c95db5c9053c88c6a;hpb=b8539b1d6fabe70b28ce4da89d8e7c451d763e97;p=ghc-hetmet.git diff --git a/darcs-all b/darcs-all index b1451b1..6c8b406 100644 --- a/darcs-all +++ b/darcs-all @@ -56,12 +56,10 @@ sub darcsall { my $path; my $tag; - darcs @_; - open IN, "< packages" or die "Can't open packages file"; while () { chomp; - if (/^([^ ]+) +(?:([^ ]+) +)?([^ ]+)/) { + if (/^([^# ]+) +(?:([^ ]+) +)?([^ ]+) +([^ ]+)$/) { $localpath = $1; $tag = defined($2) ? $2 : ""; @@ -75,7 +73,7 @@ sub darcsall { message "== $localpath repo not present; skipping"; } } - elsif (! /^$/) { + elsif (! /^(#.*)?$/) { die "Bad line: $_"; } } @@ -100,7 +98,7 @@ sub darcsget { open IN, "< packages" or die "Can't open packages file"; while () { chomp; - if (/^([^ ]+) +(?:([^ ]+) +)?([^ ]+)/) { + if (/^([^ ]+) +(?:([^ ]+) +)?([^ ]+) +([^ ]+)$/) { $localpath = $1; $tag = defined($2) ? $2 : ""; $remotepath = $3; @@ -121,7 +119,7 @@ sub darcsget { } } } - elsif (! /^$/) { + elsif (! /^(#.*)?$/) { die "Bad line: $_"; } } @@ -143,11 +141,10 @@ sub main { elsif ($arg eq "-s") { $verbose = 0; } - # --ci says we grab cabal-install repo, and the libraries it needs - # with 'get'. + # --dph says we grab the dph libs with 'get'. # It has no effect on the other commands. - elsif ($arg eq "--ci") { - $tags{"ci"} = 1; + elsif ($arg eq "--dph") { + $tags{"dph"} = 1; } # --extra says we grab the extra libs with 'get'. # It has no effect on the other commands.