breaking up distribution tasks; moving version to a template to have a simpler concat function
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user