Permalink
Browse files

generate man pages with ronn

  • Loading branch information...
copiousfreetime committed Mar 9, 2013
1 parent e6e51eb commit 9372d13585e8360913bc423257194a7d35fa2a83
Showing with 11 additions and 21 deletions.
  1. +2 −1 Rakefile
  2. +9 −1 tasks/default.rake
  3. +0 −19 tasks/man.rake
View
@@ -15,11 +15,12 @@ This.ruby_gemspec do |spec|
spec.add_runtime_dependency( 'logging' , '~> 1.6.2' )
# The Development Dependencies
- spec.add_development_dependency( 'rake' , '~> 10.0.3' )
+ spec.add_development_dependency( 'rake' , '~> 10.0.3' )
spec.add_development_dependency( 'rack-test' , '~> 0.6.1' )
spec.add_development_dependency( 'builder' , '~> 3.0.0' )
spec.add_development_dependency( 'rspec' , '~> 2.9.0' )
spec.add_development_dependency( 'rdoc' , '~> 3.12' )
+ spec.add_development_dependency( 'ronn' , '~> 0.7.3' )
end
View
@@ -58,7 +58,6 @@ begin
task :default => :test
task :test_requirements
task :test => :test_requirements
- task :default => :test
rescue LoadError
This.task_warning( 'test' )
end
@@ -233,6 +232,15 @@ Gem::PackageTask.new( This.platform_gemspec ) do
# nothing
end
+
+#------------------------------------------------------------------------------
+# man pages
+#------------------------------------------------------------------------------
+desc "Create the man pages"
+task :man do
+ sh "ronn --roff #{FileList["man/*.ronn"]}"
+end
+
#------------------------------------------------------------------------------
# Release - the steps we go through to do a final release, this is pulled from
# a compbination of mojombo's rakegem, hoe and hoe-git
View
@@ -1,19 +0,0 @@
-namespace :man do
-
- rule '.1' => '.asciidoc' do |t|
- sh "a2x --no-xmllint --format manpage #{t.source}"
- end
-
- src = FileList["man/*.asciidoc"]
- man = src.collect{ |f| f.ext( "1" ) }
-
- desc "Create man pages"
- task :create => man
-
- task :clobber_man do
- rm_f FileList["man/*.1", "man/*.html", "man/*.xml"]
- end
-end
-
-task :clobber => %w[ man:clobber_man ]
-task 'gem:prereqs' => 'man:create'

0 comments on commit 9372d13

Please sign in to comment.