mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 00:32:28 +00:00
* `*.gcroot' files can now containing multiple roots.
This commit is contained in:
parent
a4d2b22c8c
commit
b275f2ed3b
@ -26,10 +26,14 @@ foreach my $link (@links) {
|
||||
$link = $linkdir . "/" . $link;
|
||||
next if (!($link =~ /.gcroot$/));
|
||||
open ROOT, "<$link" or die "cannot open $link: $!";
|
||||
my $root = <ROOT>;
|
||||
chomp $root;
|
||||
while (<ROOT>) {
|
||||
chomp;
|
||||
foreach my $root (split ' ') {
|
||||
die "bad root `$root' in file `$link'" unless $root =~ /^\S+$/;
|
||||
push @roots, $root;
|
||||
}
|
||||
}
|
||||
close ROOT;
|
||||
push @roots, $root;
|
||||
}
|
||||
|
||||
my $extraarg = "";
|
||||
|
Loading…
Reference in New Issue
Block a user