From 7ffd114233c686568f43c88d79699c2921893ace Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 29 May 2005 10:39:46 +0000 Subject: [PATCH] Use FileUtils.mkdir_p to create the destination directory. --- ChangeLog | 6 +++++- Rakefile | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 65a47e6..6bac97f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,11 @@ -- -$Id: ChangeLog 40 2005-05-25 20:19:45Z tilman $ +$Id: ChangeLog 41 2005-05-29 10:39:46Z tilman $ ++ +2005-05-29 Tilman Sauerbeck (tilman at code-monkey de) + * Rakefile: Use FileUtils.mkdir_p to create the destination + directory + 2005-05-25 Tilman Sauerbeck (tilman at code-monkey de) * lib/redact/app.rb: Make sure to delete the output file if there's an exception while we're writing it diff --git a/Rakefile b/Rakefile index d0940e5..c94f6cf 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,4 @@ -# $Id: Rakefile 38 2005-04-25 17:47:15Z tilman $ +# $Id: Rakefile 41 2005-05-29 10:39:46Z tilman $ require "rake/clean" require "rake/testtask" @@ -28,7 +28,7 @@ task :install do |t| ddir = destdir + sitelibdir + "/redact" - FileUtils::Verbose.mkdir(ddir) unless File.directory?(ddir) + FileUtils::Verbose.mkdir_p(ddir) unless File.directory?(ddir) FileUtils::Verbose.install(Dir["lib/redact/*.rb"], ddir, :mode => 0644) end -- 2.30.2