Browse code

Makes update_source and update_style much more windows friendly.

Ben Doerr authored on 23/08/2011 at 06:22:18
Showing 1 changed files
... ...
@@ -136,7 +136,8 @@ task :update_style, :theme do |t, args|
136 136
   end
137 137
   system "mv sass sass.old"
138 138
   puts "## Moved styles into sass.old/"
139
-  system "mkdir -p sass; cp -R #{themes_dir}/"+theme+"/sass/ sass/"
139
+  system "mkdir -p sass"
140
+  system "cp -R #{themes_dir}/"+theme+"/sass/ sass/"
140 141
   cp_r "sass.old/custom/.", "sass/custom"
141 142
   puts "## Updated Sass ##"
142 143
 end
... ...
@@ -150,7 +151,8 @@ task :update_source, :theme do |t, args|
150 150
   end
151 151
   system "mv #{source_dir} #{source_dir}.old"
152 152
   puts "moved #{source_dir} into #{source_dir}.old/"
153
-  system "mkdir -p #{source_dir}; cp -R #{themes_dir}/"+theme+"/source/. #{source_dir}"
153
+  system "mkdir -p #{source_dir}" 
154
+  system "cp -R #{themes_dir}/"+theme+"/source/. #{source_dir}"
154 155
   system "cp -Rn #{source_dir}.old/. #{source_dir}"
155 156
   system "cp -Rf #{source_dir}.old/_includes/custom/. #{source_dir}/_includes/custom/"
156 157
   system "mv -f #{source_dir}/index.html #{blog_index_dir}" if blog_index_dir != source_dir