From 68768faf57c7f7f321f92e6a64f611498ccf8baf Mon Sep 17 00:00:00 2001 From: Nick Quaranto Date: Tue, 19 Jun 2012 22:58:28 -0300 Subject: [PATCH] Grab files within symlinks inside of the resources directory when copying over resources --- lib/motion/project/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/motion/project/builder.rb b/lib/motion/project/builder.rb index 6e079a78..1512c38f 100644 --- a/lib/motion/project/builder.rb +++ b/lib/motion/project/builder.rb @@ -340,7 +340,7 @@ EOS resources_files = [] if File.exist?(config.resources_dir) resources_files = Dir.chdir(config.resources_dir) do - Dir.glob('**/*').reject { |x| ['.xib', '.storyboard', '.xcdatamodeld', '.lproj'].include?(File.extname(x)) } + Dir.glob('**{,/*/**}/*').reject { |x| ['.xib', '.storyboard', '.xcdatamodeld', '.lproj'].include?(File.extname(x)) } end resources_files.each do |res| res_path = File.join(config.resources_dir, res)