Permalink
Browse files

Ensure .ry files are created not-too-soon and not-too-late for rake r…

…elease
  • Loading branch information...
1 parent 9a104ab commit 7e944b1d35039193dc31e911adbf9e6b473bf439 @drbrain drbrain committed Sep 28, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 Rakefile
View
@@ -59,7 +59,13 @@ rule '.rb' => '.ry' do |t|
end
path = "pkg/#{hoe.spec.full_name}"
-package_parser_files = PARSER_FILES.map { |file| "#{path}/#{file}" }
+
+package_parser_files = PARSER_FILES.map do |parser_file|
+ package_parser_file = "#{path}/#{parser_file}"
+ file package_parser_file => parser_file # ensure copy runs before racc
+ package_parser_file
+end
+
task "#{path}.gem" => package_parser_files
# These tasks expect to have the following directory structure:

0 comments on commit 7e944b1

Please sign in to comment.