Added support for RUBYARCHDIR.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sat, 7 May 2005 11:02:29 +0000 (11:02 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sat, 7 May 2005 11:02:29 +0000 (11:02 +0000)
Rakefile

index 279727ea8380f8e0a2fc415770b44e5894f02efb..9a2418cd5c2053ae7254af80c1454bfda521ab00 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -1,4 +1,4 @@
-# $Id: Rakefile 336 2005-05-02 17:29:52Z tilman $
+# $Id: Rakefile 339 2005-05-07 11:02:29Z tilman $
 
 require "library"
 require "rake/clean"
@@ -35,7 +35,7 @@ end
 
 task :install => ext_libs.map { |l| l.so } do |t|
        destdir = "#{ENV["DESTDIR"]}"
-       sitearchdir = Config::CONFIG['sitearchdir']
+       sitearchdir = ENV["RUBYARCHDIR"] || Config::CONFIG['sitearchdir']
 
        FileUtils::Verbose.install(t.prerequisites.to_a, destdir + sitearchdir,
                                   :mode => 0755)