summaryrefslogtreecommitdiffstats
path: root/osx/preflight
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-11-20 15:31:30 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-11-20 15:31:30 +0000
commit0f07fb09115d71990bcf3844782ce4174f2158ff (patch)
treef11bd619490e8d2a8a6c82bb32c7050aa448829e /osx/preflight
parentddc74a543f53d4197e990def51628f961af5b8cd (diff)
downloadbcfg2-0f07fb09115d71990bcf3844782ce4174f2158ff.tar.gz
bcfg2-0f07fb09115d71990bcf3844782ce4174f2158ff.tar.bz2
bcfg2-0f07fb09115d71990bcf3844782ce4174f2158ff.zip
OSX: New packaging framework
This commit allows you to build both client/server packages for OS X by changing to the osx directory and running make client/server, respectively. Hopefully make it easier to setup bcfg2 clients on OS X since the most current packages I could find were still 0.9.4. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5584 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'osx/preflight')
-rw-r--r--osx/preflight11
1 files changed, 11 insertions, 0 deletions
diff --git a/osx/preflight b/osx/preflight
new file mode 100644
index 000000000..169551b35
--- /dev/null
+++ b/osx/preflight
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Remove old bcfg2 cruft
+#
+# ${3} is the destination volume so that this works correctly
+# when being installed to volumes other than the current OS.
+
+/bin/rm -Rvf "${3}"{SITELIBDIR}/Bcfg2*
+/bin/rm -Rvf "${3}"/usr/local/bin/bcfg2*
+/bin/rm -Rvf "${3}{DATADIR}/share/bcfg2"
+/bin/rm -Rvf "${3}{DATADIR}/share/man/man8/bcfg2*"