Skip to content

Commit

Permalink
Copy dotfiles also for subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
fhemberger committed Sep 12, 2011
1 parent 7c1c24f commit 5c27554
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Rakefile
Expand Up @@ -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
Expand Down

0 comments on commit 5c27554

Please sign in to comment.