From ee13efa50d83ea4ecb549763efca211111972edf Mon Sep 17 00:00:00 2001 From: Nigel Kersten Date: Thu, 5 Nov 2009 07:28:44 -0800 Subject: Add docs to Mac OS X package creation script and clean out old docs in the preflight --- conf/osx/createpackage.sh | 12 ++++++++++++ conf/osx/preflight | 4 ++++ 2 files changed, 16 insertions(+) (limited to 'conf') diff --git a/conf/osx/createpackage.sh b/conf/osx/createpackage.sh index d27ef0e7a..563b69cbd 100755 --- a/conf/osx/createpackage.sh +++ b/conf/osx/createpackage.sh @@ -54,6 +54,17 @@ function install_puppet() { chown -R root:admin "${pkgroot}" } +function install_docs() { + echo "Installing docs to ${pkgroot}" + docdir="${pkgroot}/usr/share/doc/puppet" + mkdir -p "${docdir}" + for docfile in CHANGELOG CHANGELOG.old COPYING LICENSE README README.queueing README.rst; do + install -m 0644 "${puppet_root}/${docfile}" "${docdir}" + done + chown -R root:wheel "${docdir}" + chmod 0755 "${docdir}" +} + function get_puppet_version() { puppet_version=$(RUBYLIB="${pkgroot}/${SITELIBDIR}:${RUBYLIB}" ruby -e "require 'puppet'; puts Puppet.version") } @@ -156,6 +167,7 @@ function main() { fi install_puppet + install_docs get_puppet_version if [ ! "${puppet_version}" ]; then diff --git a/conf/osx/preflight b/conf/osx/preflight index 3a6109e65..8220d02a3 100755 --- a/conf/osx/preflight +++ b/conf/osx/preflight @@ -11,6 +11,10 @@ /bin/rm -Rf "${3}{SITELIBDIR}/puppet" /bin/rm -Rf "${3}{SITELIBDIR}/puppet.rb" +# remove old doc files + +/bin/rm -Rf "${3}/usr/share/doc/puppet" + # In puppet 0.24.x these executables lived in bindir, but in 0.25.x they # have been moved to sbindir. This cleans out old ones before installing. /bin/rm -Rf "${3}{BINDIR}/puppetca" -- cgit