diff options
author | James Turnbull <james@lovedthanlost.net> | 2010-08-27 07:35:22 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2010-08-27 07:35:22 +1000 |
commit | 7548c65a4e7e0c40d1555c9e40d46d9b5c7de489 (patch) | |
tree | d31527af5dc0961fcae4e18c73279a3894088a01 /install.rb | |
parent | 8be1929043f4560bb17a4b06293b3f9a4efcfdbf (diff) | |
download | puppet-7548c65a4e7e0c40d1555c9e40d46d9b5c7de489.tar.gz puppet-7548c65a4e7e0c40d1555c9e40d46d9b5c7de489.tar.xz puppet-7548c65a4e7e0c40d1555c9e40d46d9b5c7de489.zip |
Updated Man page generation since move to Markdown
Diffstat (limited to 'install.rb')
-rwxr-xr-x | install.rb | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/install.rb b/install.rb index b06ec09fd..37786a751 100755 --- a/install.rb +++ b/install.rb @@ -55,13 +55,13 @@ end begin if $haverdoc - rst2man = %x{which rst2man.py} + ronn = %x{which ronn} $haveman = true else $haveman = false end rescue - puts "Missing rst2man; skipping man page creation" + puts "Missing ronn; skipping man page creation" $haveman = false end @@ -347,21 +347,22 @@ end def build_man(bins, sbins) return unless $haveman begin - # Locate rst2man - rst2man = %x{which rst2man.py} - rst2man.chomp! + # Locate ronn + ronn = %x{which ronn} + ronn.chomp! # Create puppet.conf.5 man page - %x{bin/puppetdoc --reference configuration > ./puppet.conf.rst} - %x{#{rst2man} ./puppet.conf.rst ./man/man5/puppet.conf.5} - File.unlink("./puppet.conf.rst") + %x{bin/puppetdoc --reference configuration > ./man/man5/puppetconf.5.ronn} + %x{#{ronn} -r ./man/man5/puppetconf.5.ronn} + File.move("./man/man5/puppetconf.5", "./man/man5/puppet.conf.5") + File.unlink("./man/man5/puppetconf.5.ronn") # Create binary man pages binary = bins + sbins binary.each do |bin| b = bin.gsub( /(bin|sbin)\//, "") - %x{#{bin} --help > ./#{b}.rst} - %x{#{rst2man} ./#{b}.rst ./man/man8/#{b}.8} - File.unlink("./#{b}.rst") + %x{#{bin} --help > ./man/man8/#{b}.8.ronn} + %x{#{ronn} -r ./man/man8/#{b}.8.ronn} + File.unlink("./man/man8/#{b}.8.ronn") end rescue SystemCallError @@ -463,7 +464,7 @@ prepare_installation #run_tests(tests) if InstallOptions.tests #build_rdoc(rdoc) if InstallOptions.rdoc #build_ri(ri) if InstallOptions.ri -#build_man(bins, sbins) if InstallOptions.man +build_man(bins, sbins) if InstallOptions.man do_bins(sbins, InstallOptions.sbin_dir) do_bins(bins, InstallOptions.bin_dir) do_libs(libs) |