summaryrefslogtreecommitdiffstats
path: root/osx/preflight
blob: 64555480fe9e675058b9d7f93b011fea55496e75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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/man1/bcfg2*"
/bin/rm -Rvf "${3}{DATADIR}/share/man/man5/bcfg2*"
/bin/rm -Rvf "${3}{DATADIR}/share/man/man8/bcfg2*"