Skip to content

Commit

Permalink
Ensure .ry files are created not-too-soon and not-too-late for rake r…
Browse files Browse the repository at this point in the history
…elease
  • Loading branch information
drbrain committed Sep 28, 2011
1 parent 9a104ab commit 7e944b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7e944b1

Please sign in to comment.