forked from lix-project/lix
* `*.gcroot' files can now containing multiple roots.
This commit is contained in:
parent
a4d2b22c8c
commit
b275f2ed3b
|
@ -26,11 +26,15 @@ foreach my $link (@links) {
|
||||||
$link = $linkdir . "/" . $link;
|
$link = $linkdir . "/" . $link;
|
||||||
next if (!($link =~ /.gcroot$/));
|
next if (!($link =~ /.gcroot$/));
|
||||||
open ROOT, "<$link" or die "cannot open $link: $!";
|
open ROOT, "<$link" or die "cannot open $link: $!";
|
||||||
my $root = <ROOT>;
|
while (<ROOT>) {
|
||||||
chomp $root;
|
chomp;
|
||||||
close ROOT;
|
foreach my $root (split ' ') {
|
||||||
|
die "bad root `$root' in file `$link'" unless $root =~ /^\S+$/;
|
||||||
push @roots, $root;
|
push @roots, $root;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
close ROOT;
|
||||||
|
}
|
||||||
|
|
||||||
my $extraarg = "";
|
my $extraarg = "";
|
||||||
if ($keepsuccessors) { $extraarg = "--include-successors"; };
|
if ($keepsuccessors) { $extraarg = "--include-successors"; };
|
||||||
|
|
Loading…
Reference in a new issue