Browse Source

:copydot ignores thumbnail files starting with '._'

unreleased_contents
Frederic Hemberger 13 years ago
parent
commit
254cdd35d6
  1. 7
      Rakefile

7
Rakefile

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

Loading…
Cancel
Save