From 5c275542c350baeffa0b9e6656d418570cdbe4b0 Mon Sep 17 00:00:00 2001 From: fhemberger Date: Mon, 12 Sep 2011 19:46:11 +0200 Subject: [PATCH] Copy dotfiles also for subdirectories --- Rakefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 5be7910..83e1a72 100644 --- a/Rakefile +++ b/Rakefile @@ -204,10 +204,10 @@ end desc "copy dot files for deployment" task :copydot do - exclusions = [".", "..", ".DS_Store"] - Dir["#{source_dir}/.*"].each do |file| - if !File.directory?(file) && !exclusions.include?(file) - cp(file, "#{public_dir}"); + exclusions = [".", "..", ".DS_Store"] + Dir["#{source_dir}/**/.*"].each do |file| + if !File.directory?(file) && !exclusions.include?(file) + cp(file, file.gsub(/#{source_dir}/, "#{public_dir}")); end end end