mirror of
https://github.com/moparisthebest/www.moparscape.org
synced 2024-12-24 08:28:59 -05:00
Copy dotfiles also for subdirectories
This commit is contained in:
parent
7c1c24f899
commit
5c275542c3
8
Rakefile
8
Rakefile
@ -204,10 +204,10 @@ end
|
|||||||
|
|
||||||
desc "copy dot files for deployment"
|
desc "copy dot files for deployment"
|
||||||
task :copydot do
|
task :copydot do
|
||||||
exclusions = [".", "..", ".DS_Store"]
|
exclusions = [".", "..", ".DS_Store"]
|
||||||
Dir["#{source_dir}/.*"].each do |file|
|
Dir["#{source_dir}/**/.*"].each do |file|
|
||||||
if !File.directory?(file) && !exclusions.include?(file)
|
if !File.directory?(file) && !exclusions.include?(file)
|
||||||
cp(file, "#{public_dir}");
|
cp(file, file.gsub(/#{source_dir}/, "#{public_dir}"));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user