diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-07-11 11:55:56 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-07-11 11:55:56 -0400 |
commit | 9e6a951826d22eadc0f17f2e4962b41cac429a7c (patch) | |
tree | c1889bcbc642539fc8196332dd2cc9f7af71229c | |
parent | acd1ba34d3b74ebb6574d35bc798e1d5f185748a (diff) | |
download | my_new_personal_website-9e6a951826d22eadc0f17f2e4962b41cac429a7c.tar.xz my_new_personal_website-9e6a951826d22eadc0f17f2e4962b41cac429a7c.zip |
Updated install rake task (now properly copies directory contents) Thanks @pw for the pull request fixes #32
Diffstat (limited to '')
-rw-r--r-- | Rakefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -26,10 +26,14 @@ task :install, :theme do |t, args| # copy theme into working Jekyll directories theme = args.theme || 'classic' puts "## Copying "+theme+" theme into ./#{source_dir} ./sass and ./plugins " - system "mkdir -p #{source_dir}; cp -R #{themes_dir}/"+theme+"/source/ #{source_dir}/" - system "mkdir -p sass; cp -R #{themes_dir}/"+theme+"/sass/ sass/" - system "mkdir -p plugins; cp -R #{themes_dir}/"+theme+"/plugins/ plugins/" - system "mkdir -p #{source_dir}/#{posts_dir}"; + mkdir_p source_dir + cp_r "#{themes_dir}/#{theme}/source/.", source_dir + mkdir_p "sass" + cp_r "#{themes_dir}/#{theme}/sass/.", "sass" + mkdir_p "plugins" + cp_r "#{themes_dir}/#{theme}/plugins/.", "plugins" + mkdir_p "#{source_dir}/#{posts_dir}" + mkdir_p public_dir end ####################### |