diff options
author | Nigel Kersten <nigelk@google.com> | 2009-11-05 07:28:44 -0800 |
---|---|---|
committer | Nigel Kersten <nigelk@google.com> | 2009-11-05 07:28:44 -0800 |
commit | ee13efa50d83ea4ecb549763efca211111972edf (patch) | |
tree | a3bf751cfa2bfd71e41f8469e8477664c96d3023 /conf | |
parent | b8470b8064503baea21d43d5c1dcf349bc4daf59 (diff) | |
download | puppet-ee13efa50d83ea4ecb549763efca211111972edf.tar.gz puppet-ee13efa50d83ea4ecb549763efca211111972edf.tar.xz puppet-ee13efa50d83ea4ecb549763efca211111972edf.zip |
Add docs to Mac OS X package creation script and clean out old docs in the preflight
Diffstat (limited to 'conf')
-rwxr-xr-x | conf/osx/createpackage.sh | 12 | ||||
-rwxr-xr-x | conf/osx/preflight | 4 |
2 files changed, 16 insertions, 0 deletions
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" |