summaryrefslogtreecommitdiff
path: root/mkdep.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-06-04 04:11:01 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-06-04 04:11:01 +0000
commit1be737b61cbecbab6dda29642613769c0a0e4210 (patch)
tree8cbecf999fb669a938d6d2080e44878e68a568c0 /mkdep.pl
parent26575434d3b55e918fc49f946dc0d19c7a390339 (diff)
downloadnasm-1be737b61cbecbab6dda29642613769c0a0e4210.tar.gz
nasm-1be737b61cbecbab6dda29642613769c0a0e4210.tar.bz2
nasm-1be737b61cbecbab6dda29642613769c0a0e4210.zip
Correct the command line parsing of --
Diffstat (limited to 'mkdep.pl')
-rwxr-xr-xmkdep.pl4
1 files changed, 2 insertions, 2 deletions
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);