From 3c5962d8a605b92c622f19de3313439fd43a1c8c Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sat, 25 Feb 2006 10:13:07 +0000 Subject: [PATCH] Create target directory if it doesn't exist yet. --- Rakefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 59351d6..fcf776a 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,4 @@ -# $Id: Rakefile 341 2005-05-07 11:02:51Z tilman $ +# $Id: Rakefile 378 2006-02-25 10:13:07Z tilman $ require "library" require "rake/clean" @@ -31,6 +31,7 @@ task :install => [ext_lib.so] do |t| destdir = "#{ENV["DESTDIR"]}" sitearchdir = ENV["RUBYARCHDIR"] || Config::CONFIG['sitearchdir'] - FileUtils::Verbose.install(ext_lib.so, destdir + sitearchdir, - :mode => 0755) + ddir = destdir + sitearchdir + FileUtils::Verbose.mkdir_p(ddir) unless File.directory?(ddir) + FileUtils::Verbose.install(ext_lib.so, ddir, :mode => 0755) end -- 2.30.2