aboutsummaryrefslogtreecommitdiffstats
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-09 09:20:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-09 09:20:52 +0000
commit3d4b83aaba6ece74ca480803bf74bffb79dcfde8 (patch)
tree42f36cbe3fa4f23bc66d5d699663932756a9b880 /ext/extmk.rb
parentec47d111790f6ffd302a7738d95b18bdeb3f79b6 (diff)
downloadruby-3d4b83aaba6ece74ca480803bf74bffb79dcfde8.tar.gz
* ext/extmk.rb, lib/mkmf.rb: rename $outdir to $extout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r--ext/extmk.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index dc87b2c237..466dae23f3 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -146,7 +146,7 @@ def parse_args()
end
$destdir = $OPT['dest-dir'] || ''
if opt = $OPT['extout'] and !opt.empty?
- $outdir = File.expand_path(opt, $topdir)
+ $extout = File.expand_path(opt, $topdir)
end
$make = $OPT['make'] || $make || 'make'
mflags = ($OPT['make-flags'] || '').strip
@@ -179,9 +179,9 @@ def parse_args()
$destdir = File.expand_path($destdir)
$mflags.defined?("DESTDIR") or $mflags << "DESTDIR=#{$destdir}"
end
- if $outdir
- $mflags << "outdir=#{$outdir.sub(/#{Regexp.quote($topdir)}/, '$(topdir)')}"
- $mflags << "outdir_prefix=#{$outdir_prefix}"
+ if $extout
+ $mflags << "extout=#{$extout.sub(/#{Regexp.quote($topdir)}/, '$(topdir)')}"
+ $mflags << "extout_prefix=#{$extout_prefix}"
end
$message = $OPT['message']
@@ -268,14 +268,14 @@ exts |= Dir.glob("#{ext_prefix}/*/**/MANIFEST").collect {|d|
d
} unless $extension
-if $outdir
+if $extout
if $install
Config.expand(dest = "#{$destdir}#{$rubylibdir}")
- FileUtils.cp_r($outdir+"/.", dest, :verbose => true, :noop => $dryrun)
+ FileUtils.cp_r($extout+"/.", dest, :verbose => true, :noop => $dryrun)
exit
end
unless $ignore
- FileUtils.mkpath($outdir)
+ FileUtils.mkpath($extout)
end
end