Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add docs to Mac OS X package creation script and clean out old docs i…
…n the preflight
  • Loading branch information
Nigel Kersten authored and jamtur01 committed Nov 5, 2009
1 parent 5412eab commit b2c1ca5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions conf/osx/createpackage.sh
Expand Up @@ -54,6 +54,17 @@ function install_facter() {
chown -R root:admin "${pkgroot}"
}

function install_docs() {
echo "Installing docs to ${pkgroot}"
docdir="${pkgroot}/usr/share/doc/facter"
mkdir -p "${docdir}"
for docfile in ChangeLog COPYING LICENSE README README.rst TODO; do
install -m 0644 "${facter_root}/${docfile}" "${docdir}"
done
chown -R root:wheel "${docdir}"
chmod 0755 "${docdir}"
}

function get_facter_version() {
facter_version=$(RUBYLIB="${pkgroot}/${SITELIBDIR}:${RUBYLIB}" ruby -e "require 'facter'; puts Facter.version")
}
Expand Down
4 changes: 4 additions & 0 deletions conf/osx/preflight
Expand Up @@ -10,3 +10,7 @@

/bin/rm -Rf "${3}{SITELIBDIR}/facter"
/bin/rm -Rf "${3}{SITELIBDIR}/facter.rb"

# remove old doc files

/bin/rm -Rf "${3}/usr/share/doc/facter"

0 comments on commit b2c1ca5

Please sign in to comment.