diff options
author | fhemberger <mail@frederic-hemberger.de> | 2011-09-12 19:46:11 +0200 |
---|---|---|
committer | fhemberger <mail@frederic-hemberger.de> | 2011-09-12 19:46:11 +0200 |
commit | 5c275542c350baeffa0b9e6656d418570cdbe4b0 (patch) | |
tree | 32d539fd6f6270f5c6d061d955958d5933bd267d /Rakefile | |
parent | 7c1c24f899ba55f01f4152e37fbd1b8ae044c1b3 (diff) | |
download | my_new_personal_website-5c275542c350baeffa0b9e6656d418570cdbe4b0.tar.xz my_new_personal_website-5c275542c350baeffa0b9e6656d418570cdbe4b0.zip |
Copy dotfiles also for subdirectories
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |