From 1be737b61cbecbab6dda29642613769c0a0e4210 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 4 Jun 2002 04:11:01 +0000 Subject: Correct the command line parsing of -- --- mkdep.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mkdep.pl') diff --git a/mkdep.pl b/mkdep.pl index 45a09ac..5903474 100755 --- a/mkdep.pl +++ b/mkdep.pl @@ -138,10 +138,10 @@ while ( defined($arg = shift(@ARGV)) ) { push(@mkfiles, $arg); } elsif ( $arg eq '-M' ) { $mkmode = 1; # Futher filenames are output Makefile names - } elsif ( $arg =~ /^-/ ) { - die "Unknown option: $arg\n"; } elsif ( $arg eq '--' && $mkmode ) { $mkmode = 0; + } elsif ( $arg =~ /^-/ ) { + die "Unknown option: $arg\n"; } else { if ( $mkmode ) { push(@mkfiles, $arg); -- cgit v1.2.3