From: Tilman Sauerbeck Date: Tue, 29 Mar 2005 19:21:00 +0000 (+0000) Subject: Fixed the install task. X-Git-Tag: redact-0.1.0~1 X-Git-Url: http://git.code-monkey.de/?p=redact.git;a=commitdiff_plain;h=b3cdbbfef92a9f5dd16d4f04c5e529a2604745b8 Fixed the install task. It now installs all Ruby files found in lib/redact. --- diff --git a/ChangeLog b/ChangeLog index ea2f079..505335f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,12 @@ -- -$Id: ChangeLog 14 2005-03-29 16:25:21Z tilman $ +$Id: ChangeLog 15 2005-03-29 19:21:00Z tilman $ ++ 2005-03-29 Tilman Sauerbeck (tilman at code-monkey de) * Rakefile: Tweak lookup of PKG_VERSION * Rakefile: Require Rake 0.5.0 or greater + * Rakefile: Fixed the install task so it installs all Ruby files + found in lib/redact 2005-03-28 Tilman Sauerbeck (tilman at code-monkey de) * lib/redact/app.rb: Tweaked "redact --version" output diff --git a/Rakefile b/Rakefile index 54a6f06..e352d0b 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,4 @@ -# $Id: Rakefile 14 2005-03-29 16:25:21Z tilman $ +# $Id: Rakefile 15 2005-03-29 19:21:00Z tilman $ require "rake/clean" require "rake/testtask" @@ -29,11 +29,8 @@ task :install do |t| ddir = destdir + sitelibdir + "/redact" FileUtils::Verbose.mkdir(ddir) unless File.directory?(ddir) - - ["app", "part", "program", "redact"].each do |file| - FileUtils::Verbose.install("lib/redact/#{file}.rb", ddir, - :mode => 0644) - end + FileUtils::Verbose.install(Dir["lib/redact/*.rb"], ddir, + :mode => 0644) end task :test