aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-07-31 13:24:38 -0400
committerBrandon Mathis <brandon@imathis.com>2011-07-31 13:24:56 -0400
commit5d24e0ba2b3ae72f56b3e9daf586b8e7bccfd6ae (patch)
treee9d95c4fd72a79028886c2878ab2524c8eee370d
parent07f4937bfd5208916eece1032ae2794f2d1ce92d (diff)
downloadmy_new_personal_website-5d24e0ba2b3ae72f56b3e9daf586b8e7bccfd6ae.tar.xz
my_new_personal_website-5d24e0ba2b3ae72f56b3e9daf586b8e7bccfd6ae.zip
udpated rake udpate_source task to preserve custom includes instaed of preserving navigation and footer
-rw-r--r--Rakefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 734bbbd7..86e07b5d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -149,8 +149,7 @@ task :update_source, :theme do |t, args|
puts "moved #{source_dir} into #{source_dir}.old/"
system "mkdir -p #{source_dir}; cp -R #{themes_dir}/"+theme+"/source/. #{source_dir}"
system "cp -Rn #{source_dir}.old/. #{source_dir}"
- system "cp -f #{source_dir}.old/_includes/navigation.html #{source_dir}/_includes/navigation.html"
- system "cp -f #{source_dir}.old/_includes/footer.html #{source_dir}/_includes/footer.html"
+ system "cp -Rf #{source_dir}.old/_includes/custom/. #{source_dir}/_includes/custom/"
puts "## Updated #{source_dir} ##"
end