diff --git a/ChangeLog b/ChangeLog index 7ef4a0240d..b0ef2b2766 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 10 20:55:15 2003 WATANABE Hirofumi + + * ext/extmk.rb (parse_args): add '-n' to $mflags BEFORE "--". + do not add DESTDIR if already included in $fmlags. + Mon Feb 10 19:54:30 2003 Minero Aoki * lib/fileutils.rb (FileUtils#uptodate?): use mtime for diff --git a/ext/extmk.rb b/ext/extmk.rb index 89d8f088a3..06a9fd50fc 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -141,12 +141,11 @@ def parse_args() if $mflags.set?(?n) $dryrun = true else - $mflags << '-n' if $dryrun + $mflags.unshift '-n' if $dryrun end - $mflags << "DESTDIR=#{$destdir}" - $continue = $mflags.set?(?k) + $mflags |= ["DESTDIR=#{$destdir}"] end parse_args()