Browse code

udpated rake udpate_source task to preserve custom includes instaed of preserving navigation and footer

Brandon Mathis authored on 31/07/2011 at 17:24:38
Showing 1 changed files
... ...
@@ -149,8 +149,7 @@ task :update_source, :theme do |t, args|
149 149
   puts "moved #{source_dir} into #{source_dir}.old/"
150 150
   system "mkdir -p #{source_dir}; cp -R #{themes_dir}/"+theme+"/source/. #{source_dir}"
151 151
   system "cp -Rn #{source_dir}.old/. #{source_dir}"
152
-  system "cp -f #{source_dir}.old/_includes/navigation.html #{source_dir}/_includes/navigation.html"
153
-  system "cp -f #{source_dir}.old/_includes/footer.html #{source_dir}/_includes/footer.html"
152
+  system "cp -Rf #{source_dir}.old/_includes/custom/. #{source_dir}/_includes/custom/"
154 153
   puts "## Updated #{source_dir} ##"
155 154
 end
156 155