Browse Source

Merge pull request #49 from lukearmstrong/patch-3

Fixed rake update_source
unreleased_contents
Brandon Mathis 13 years ago
parent
commit
b7a9e1e993
  1. 2
      Rakefile

2
Rakefile

@ -139,7 +139,7 @@ task :update_source, :theme do |t, args|
theme = args.theme || 'classic' theme = args.theme || 'classic'
system "mv #{source_dir} #{source_dir}.old" system "mv #{source_dir} #{source_dir}.old"
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 -f #{source_dir}.old/_includes/navigation.html #{source_dir}/_includes/navigation.html"
puts "## Updated #{source_dir} ##" puts "## Updated #{source_dir} ##"

Loading…
Cancel
Save