source: trunk/misc/build_helpers/osx/scripts/preinstall

Last change on this file was e92a9774, checked in by Daira Hopwood <daira@…>, at 2015-09-03T14:18:08Z

OS-X package: add a preinstall script and copy the manpage into /etc/manpaths.d.

The preinstall script detects previous installation and removes it.

Author: Ramakrishnan Muthukrishnan <ram@…>

  • Property mode set to 100755
File size: 229 bytes
Line 
1#!/bin/bash
2
3if [ -d /Applications/tahoe.app ]; then
4    rm -r /Applications/tahoe.app
5fi
6
7if [ -f /etc/paths.d/tahoe ]; then
8    rm /etc/paths.d/tahoe
9fi
10
11if [ -f /etc/manpaths.d/tahoe.1 ]; then
12    rm /etc/manpaths.d/tahoe.1
13fi
Note: See TracBrowser for help on using the repository browser.