diff options
author | Ben Doerr <ben_doerr@sra.com> | 2011-08-23 03:22:18 -0300 |
---|---|---|
committer | Ben Doerr <ben_doerr@sra.com> | 2011-08-23 03:22:18 -0300 |
commit | 9d57455e0ff376a39ce46a788b4ee636a19ca3af (patch) | |
tree | 550e6b9bd49ae6dd952558b34207f64fc62ae978 /Rakefile | |
parent | 599cd4e07c59c92fa863f6eb8431394e3813411c (diff) | |
download | my_new_personal_website-9d57455e0ff376a39ce46a788b4ee636a19ca3af.tar.xz my_new_personal_website-9d57455e0ff376a39ce46a788b4ee636a19ca3af.zip |
Makes update_source and update_style much more windows friendly.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -136,7 +136,8 @@ task :update_style, :theme do |t, args| end system "mv sass sass.old" puts "## Moved styles into sass.old/" - system "mkdir -p sass; cp -R #{themes_dir}/"+theme+"/sass/ sass/" + system "mkdir -p sass" + system "cp -R #{themes_dir}/"+theme+"/sass/ sass/" cp_r "sass.old/custom/.", "sass/custom" puts "## Updated Sass ##" end @@ -150,7 +151,8 @@ task :update_source, :theme do |t, args| end system "mv #{source_dir} #{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}" + system "cp -R #{themes_dir}/"+theme+"/source/. #{source_dir}" system "cp -Rn #{source_dir}.old/. #{source_dir}" system "cp -Rf #{source_dir}.old/_includes/custom/. #{source_dir}/_includes/custom/" system "mv -f #{source_dir}/index.html #{blog_index_dir}" if blog_index_dir != source_dir |