Import DESTDIR in swig/ruby/setup.rb for configurable rbconfig install paths.
authorIan Abbott <abbotti@mev.co.uk>
Tue, 14 Dec 2010 14:37:18 +0000 (14:37 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Tue, 14 Dec 2010 14:37:18 +0000 (14:37 +0000)
Patch from W. Trevor King.

swig/ruby/setup.rb

index 424a5f37c6fe3a7cac54b0f85688c1cce7da9cdf..228ec2e1bb6987b7c8ac1cdb494a9d0c9303cd58 100644 (file)
@@ -41,6 +41,9 @@ def File.dir?(path)
   File.directory?((path[-1,1] == '/') ? path : path + '/')
 end
 
+if ENV['DESTDIR'] then
+  DESTDIR = ENV['DESTDIR']
+end
 
 class ConfigTable