[project @ 2002-01-07 22:39:20 by ken]
authorken <unknown>
Mon, 7 Jan 2002 22:39:20 +0000 (22:39 +0000)
committerken <unknown>
Mon, 7 Jan 2002 22:39:20 +0000 (22:39 +0000)
Ignore -package-name <package-name> on the command line.
MERGE TO STABLE

glafp-utils/mkdependC/mkdependC.prl

index 26ce208..2bce81e 100644 (file)
@@ -127,8 +127,15 @@ sub mangle_command_line_args {
                push(@Src_files, $_);
            }
 
-       } elsif ($Dashdashes_seen == 1) { # where we ignore unknown options
-           push(@Src_files,$_) if ! /^-/;
+       } elsif ($Dashdashes_seen == 1) {
+           if ( /^-package-name$/ ) {
+               # Skip option argument
+               shift(@ARGV);
+           } elsif ( /^-/ ) {
+               # Ignore unknown option
+           } else {
+               push(@Src_files,$_);
+           }
        }
     }
 }