diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-03-21 02:22:31 +1100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-03-21 02:22:31 +1100 |
commit | 6ddebf4d6f5f1537987cdc15a32f439149d73ce6 (patch) | |
tree | 232295b3a9671b0d4ab5a8d67fb61b68dce64505 /tasks | |
parent | 33d3624c91b236e237fe194d9df3d9fa324111c3 (diff) | |
download | puppet-6ddebf4d6f5f1537987cdc15a32f439149d73ce6.tar.gz puppet-6ddebf4d6f5f1537987cdc15a32f439149d73ce6.tar.xz puppet-6ddebf4d6f5f1537987cdc15a32f439149d73ce6.zip |
Fixed #2086 - Fixes to make building tarballs easier
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/rake/reductive.rb | 6 |
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" |