Skip to content

Commit

Permalink
:copydot ignores thumbnail files starting with '._'
Browse files Browse the repository at this point in the history
  • Loading branch information
fhemberger committed Dec 10, 2011
1 parent e8ee521 commit 254cdd3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Rakefile
Expand Up @@ -217,11 +217,8 @@ end

desc "copy dot files for deployment"
task :copydot, :source, :dest do |t, args|
exclusions = [".", "..", ".DS_Store"]
Dir["#{args.source}/**/.*"].each do |file|
if !File.directory?(file) && !exclusions.include?(File.basename(file))
cp(file, file.gsub(/#{args.source}/, "#{args.dest}"));
end
FileList["#{args.source}/**/.*"].exclude("**/.", "**/..", "**/.DS_Store", "**/._*").each do |file|
cp_r file, file.gsub(/#{args.source}/, "#{args.dest}") unless File.directory?(file)
end
end

Expand Down

0 comments on commit 254cdd3

Please sign in to comment.