diff options
| author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-10 11:59:26 +0000 |
|---|---|---|
| committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-02-10 11:59:26 +0000 |
| commit | c6a5b1e93a010b3aec7d434db358eb099f60e4f3 (patch) | |
| tree | 61fe6b0b99a0ff79dbebeefd68fa14da3eaee46d /ext | |
| parent | 810b8e1b359f6afaf13f059f4f6153eb3ef9a031 (diff) | |
| download | ruby-c6a5b1e93a010b3aec7d434db358eb099f60e4f3.tar.gz ruby-c6a5b1e93a010b3aec7d434db358eb099f60e4f3.tar.xz ruby-c6a5b1e93a010b3aec7d434db358eb099f60e4f3.zip | |
* ext/extmk.rb (parse_args): add '-n' to $mflags BEFORE "--".
do not add DESTDIR if already included in $fmlags.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/extmk.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 89d8f088a..06a9fd50f 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() |
