From: simonmar Date: Wed, 9 Jan 2002 10:29:32 +0000 (+0000) Subject: [project @ 2002-01-09 10:29:32 by simonmar] X-Git-Tag: Approximately_9120_patches~294 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=1c424fdb63745ecc1f621fd991a35fcabce46333;p=ghc-hetmet.git [project @ 2002-01-09 10:29:32 by simonmar] Back out previous fix, I've hacked it in a different place which is at least closer to the source of the problem. --- diff --git a/glafp-utils/mkdependC/mkdependC.prl b/glafp-utils/mkdependC/mkdependC.prl index 2bce81e1..26ce208 100644 --- a/glafp-utils/mkdependC/mkdependC.prl +++ b/glafp-utils/mkdependC/mkdependC.prl @@ -127,15 +127,8 @@ sub mangle_command_line_args { push(@Src_files, $_); } - } elsif ($Dashdashes_seen == 1) { - if ( /^-package-name$/ ) { - # Skip option argument - shift(@ARGV); - } elsif ( /^-/ ) { - # Ignore unknown option - } else { - push(@Src_files,$_); - } + } elsif ($Dashdashes_seen == 1) { # where we ignore unknown options + push(@Src_files,$_) if ! /^-/; } } }