Skip to content
Browse files

Copy dotfiles also for subdirectories

  • Loading branch information...
1 parent 7c1c24f commit 5c275542c350baeffa0b9e6656d418570cdbe4b0 @fhemberger fhemberger committed Sep 12, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 Rakefile
View
8 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

0 comments on commit 5c27554

Please sign in to comment.
Something went wrong with that request. Please try again.