diff options
author | H. Peter Anvin <hpa@zytor.com> | 2002-06-04 04:11:01 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2002-06-04 04:11:01 +0000 |
commit | 1be737b61cbecbab6dda29642613769c0a0e4210 (patch) | |
tree | 8cbecf999fb669a938d6d2080e44878e68a568c0 /mkdep.pl | |
parent | 26575434d3b55e918fc49f946dc0d19c7a390339 (diff) | |
download | nasm-1be737b61cbecbab6dda29642613769c0a0e4210.tar.gz nasm-1be737b61cbecbab6dda29642613769c0a0e4210.tar.bz2 nasm-1be737b61cbecbab6dda29642613769c0a0e4210.zip |
Correct the command line parsing of --
Diffstat (limited to 'mkdep.pl')
-rwxr-xr-x | mkdep.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |