my $perl_ns = "perl";
-if ("@ARGV") {
- foreach (@ARGV) {
- process_file($_);
- }
-} else {
+my $BUILDROOT = shift;
- # notice we are passed a list of filenames NOT as common in unix the
- # contents of the file.
+# Check if BUILDROOT is set
+unless ($BUILDROOT) {
+ die "BUILDROOT is not set";
+}
- foreach (<>) {
- process_file($_);
- }
+# Process the passed filelist
+foreach (<>) {
+ process_file("${BUILDROOT}/$_");
}
my $perl_ns = "perl";
+my $BUILDROOT = shift;
+
+# Check if BUILDROOT is set
+unless ($BUILDROOT) {
+ die "BUILDROOT is not set";
+}
+
$HAVE_VERSION = 0;
eval { require version; $HAVE_VERSION = 1; };
$prov_script = "$dir/perl.prov";
}
-if ("@ARGV") {
- foreach my $file (@ARGV) {
- process_file($file);
- process_file_provides($file);
- compute_global_requires();
- }
-} else {
-
- # notice we are passed a list of filenames NOT as common in unix the
- # contents of the file.
-
- foreach my $file (<>) {
- process_file($file);
- process_file_provides($file);
- compute_global_requires();
- }
+# Process the passed filelist
+foreach (<>) {
+ process_file("${BUILDROOT}/$_");
+ process_file_provides("${BUILDROOT}/$_");
+ compute_global_requires();
}
-
foreach $perlver (sort keys %perlreq) {
print "$perl_ns(:VERSION) >= $perlver\n";
}