Browse code

Updated install rake task (now properly copies directory contents) Thanks @pw for the pull request fixes #32

Brandon Mathis authored on 11/07/2011 at 15:55:56
Showing 1 changed files
... ...
@@ -26,10 +26,14 @@ task :install, :theme do |t, args|
26 26
   # copy theme into working Jekyll directories
27 27
   theme = args.theme || 'classic'
28 28
   puts "## Copying "+theme+" theme into ./#{source_dir} ./sass and ./plugins "
29
-  system "mkdir -p #{source_dir}; cp -R #{themes_dir}/"+theme+"/source/ #{source_dir}/"
30
-  system "mkdir -p sass; cp -R #{themes_dir}/"+theme+"/sass/ sass/"
31
-  system "mkdir -p plugins; cp -R #{themes_dir}/"+theme+"/plugins/ plugins/"
32
-  system "mkdir -p #{source_dir}/#{posts_dir}";
29
+  mkdir_p source_dir
30
+  cp_r "#{themes_dir}/#{theme}/source/.", source_dir
31
+  mkdir_p "sass"
32
+  cp_r "#{themes_dir}/#{theme}/sass/.", "sass"
33
+  mkdir_p "plugins"
34
+  cp_r "#{themes_dir}/#{theme}/plugins/.", "plugins"
35
+  mkdir_p "#{source_dir}/#{posts_dir}"
36
+  mkdir_p public_dir
33 37
 end
34 38
 
35 39
 #######################