]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - misc/build_helpers/osx/scripts/preinstall
OS-X package: add a preinstall script and copy the manpage into /etc/manpaths.d.
[tahoe-lafs/tahoe-lafs.git] / misc / build_helpers / osx / scripts / preinstall
1 #!/bin/bash
2
3 if [ -d /Applications/tahoe.app ]; then
4     rm -r /Applications/tahoe.app
5 fi
6
7 if [ -f /etc/paths.d/tahoe ]; then
8     rm /etc/paths.d/tahoe
9 fi
10
11 if [ -f /etc/manpaths.d/tahoe.1 ]; then
12     rm /etc/manpaths.d/tahoe.1
13 fi