summaryrefslogtreecommitdiffstats
path: root/install.rb
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-01-15 00:47:17 +1100
committerJames Turnbull <james@lovedthanlost.net>2008-01-15 00:47:17 +1100
commitd8991abac0b5302fe4202940b637dc4477d5e44e (patch)
treec4500ee116a3ed5c52937d1d86aa120130e0aa9f /install.rb
parent5a0388f654f3bdbe099ecf05099f441c243fda67 (diff)
downloadpuppet-d8991abac0b5302fe4202940b637dc4477d5e44e.tar.gz
puppet-d8991abac0b5302fe4202940b637dc4477d5e44e.tar.xz
puppet-d8991abac0b5302fe4202940b637dc4477d5e44e.zip
Updated install.rb to product puppet.conf.man page - updating ticket #198
Diffstat (limited to 'install.rb')
-rwxr-xr-xinstall.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/install.rb b/install.rb
index dc405c2d1..6dbb3e0e3 100755
--- a/install.rb
+++ b/install.rb
@@ -240,16 +240,19 @@ end
def build_man(bins)
return unless $haveman
begin
- # Create man pages
+ # Create binary man pages
+ rst2man = %x{which rst2man.py}
+ rst2man.chomp!
+ %x{bin/puppetdoc --reference configuration > ./puppet.conf.rst}
+ %x{#{rst2man} ./puppet.conf.rst ./man/man8/puppet.conf.8}
+
bins.each do |bin|
- rst2man = %x{which rst2man.py}
- rst2man.chomp!
b = bin.gsub( "bin/", "")
- %x{#{bin} --help > ./#{b}.rst}
+ %x{#{bin} --help > ./#{b}.rst}
%x{#{rst2man} ./#{b}.rst ./man/man8/#{b}.8}
# Delete temporary files
- File.unlink("./#{b}.rst")
+ File.unlink("./#{b}.rst","./puppet.conf.rst")
end
rescue
$stderr.puts "Couldn't build man pages"
@@ -354,7 +357,7 @@ prepare_installation
run_tests(tests) if InstallOptions.tests
#build_rdoc(rdoc) if InstallOptions.rdoc
#build_ri(ri) if InstallOptions.ri
-#build_man(bins) if InstallOptions.man
+build_man(bins) if InstallOptions.man
do_bins(sbins, InstallOptions.sbin_dir)
do_bins(bins, InstallOptions.bin_dir)
do_libs(libs)