summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'tasks')
-rw-r--r--tasks/rake/reductive.rb6
1 files 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"