breaking up distribution tasks; moving version to a template to have a simpler concat function

This commit is contained in:
Davis W. Frank
2011-06-14 08:30:14 -07:00
parent 2ba0aa371c
commit e59171935f
9 changed files with 93 additions and 23 deletions
+13
View File
@@ -0,0 +1,13 @@
desc "Build the Github pages HTML"
task :build_pages => :require_pages_submodule do
Dir.chdir("pages") do
FileUtils.rm_r('pages_output') if File.exist?('pages_output')
Dir.chdir('pages_source') do
system("frank export ../pages_output")
end
puts "\n"
puts "Copying built website to the root of the gh-pages branch"
puts "\n\n"
system("cp -r pages_output/* .")
end
end