Skip to content

Commit 7e014b5

Browse files
committed
Generate rd parser files into the pkg dir so gem building will work
1 parent fe0c3b9 commit 7e014b5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Rakefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Hoe.plugin :rdoc_tags
1616

1717
$rdoc_rakefile = true
1818

19-
Hoe.spec 'rdoc' do
19+
hoe = Hoe.spec 'rdoc' do
2020
developer 'Eric Hodel', '[email protected]'
2121
developer 'Dave Thomas', ''
2222
developer 'Phil Hagelberg', '[email protected]'
@@ -50,14 +50,18 @@ Depending on your version of ruby, you may need to install ruby rdoc/ri data:
5050
spec_extras['homepage'] = 'http://docs.seattlerb.org/rdoc'
5151
end
5252

53-
task 'generate' => PARSER_FILES
53+
task :generate => PARSER_FILES
5454

5555
rule '.rb' => '.ry' do |t|
5656
racc = Gem.bin_path 'racc', 'racc'
5757

5858
ruby "-rubygems #{racc} -l -o #{t.name} #{t.source}"
5959
end
6060

61+
path = "pkg/#{hoe.spec.full_name}"
62+
package_parser_files = PARSER_FILES.map { |file| "#{path}/#{file}" }
63+
task "#{path}.gem" => package_parser_files
64+
6165
# These tasks expect to have the following directory structure:
6266
#
6367
# git/git.rubini.us/code # Rubinius git HEAD checkout

TODO.rdoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Some file contains some things that might happen in RDoc, or might not
44

55
* Copy static files into doc dir for HTML
66
* Add sections to the ToC
7-
* Generate rd parser files into pkg dir
87
* Add a markup option to RDoc::Task
98

109
=== RDoc 3.11

0 commit comments

Comments
 (0)