From 6ddebf4d6f5f1537987cdc15a32f439149d73ce6 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Sat, 21 Mar 2009 02:22:31 +1100 Subject: Fixed #2086 - Fixes to make building tarballs easier --- tasks/rake/reductive.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/rake/reductive.rb b/tasks/rake/reductive.rb index 2fbd2b4d9..fb0921768 100644 --- a/tasks/rake/reductive.rb +++ b/tasks/rake/reductive.rb @@ -208,7 +208,7 @@ class Rake::RedLabProject < Rake::TaskLib end @defaulttask = :alltests - @publishdir = "/opt/rl/docroots/reductivelabs.com/htdocs/downloads" + @publishdir = ENV['DOWNLOAD_DIR'] || "/opt/rl/docroots/reductivelabs.com/htdocs/downloads" @pkgpublishdir = "#{@publishdir}/#{@name}" @email = "dev@reductivelabs.com" @@ -248,7 +248,9 @@ class Rake::RedLabProject < Rake::TaskLib # Publish the html. task :publish => [:package, :html] do puts Dir.getwd - sh %{cp -r html #{self.pkgpublishdir}/apidocs} + apidocsdir = "#{@pkgpublishdir}/apidocs" + File.makedirs(apidocsdir) + sh %{cp -r html #{apidocsdir}} end else warn "No rdoc; skipping html" -- cgit