udpated rake udpate_source task to preserve custom includes instaed of preserving navigation and footer
This commit is contained in:
parent
07f4937bfd
commit
5d24e0ba2b
3
Rakefile
3
Rakefile
@ -149,8 +149,7 @@ task :update_source, :theme do |t, args|
|
|||||||
puts "moved #{source_dir} into #{source_dir}.old/"
|
puts "moved #{source_dir} into #{source_dir}.old/"
|
||||||
system "mkdir -p #{source_dir}; cp -R #{themes_dir}/"+theme+"/source/. #{source_dir}"
|
system "mkdir -p #{source_dir}; cp -R #{themes_dir}/"+theme+"/source/. #{source_dir}"
|
||||||
system "cp -Rn #{source_dir}.old/. #{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 -Rf #{source_dir}.old/_includes/custom/. #{source_dir}/_includes/custom/"
|
||||||
system "cp -f #{source_dir}.old/_includes/footer.html #{source_dir}/_includes/footer.html"
|
|
||||||
puts "## Updated #{source_dir} ##"
|
puts "## Updated #{source_dir} ##"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user