Skip to content

Commit

Permalink
Updated install rake task (now properly copies directory contents) Th…
Browse files Browse the repository at this point in the history
…anks @pw for the pull request fixes imathis#32
  • Loading branch information
imathis committed Jul 11, 2011
1 parent acd1ba3 commit 9e6a951
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Rakefile
Expand Up @@ -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

#######################
Expand Down

0 comments on commit 9e6a951

Please sign in to comment.