mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 10:01:54 +00:00
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@leastauthority.com>
This commit is contained in:
parent
7309aed524
commit
e92a9774fa
@ -1,3 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "/Applications/tahoe.app/bin" >> /etc/paths.d/tahoe
|
||||
PWD=`pwd`
|
||||
|
||||
echo "/Applications/tahoe.app/bin/" >> /etc/paths.d/tahoe
|
||||
|
||||
# copy the manpage into /etc/manpaths.d/
|
||||
echo "/Applications/tahoe.app/docs/man/" >> /etc/manpaths.d/tahoe
|
||||
|
13
misc/build_helpers/osx/scripts/preinstall
Executable file
13
misc/build_helpers/osx/scripts/preinstall
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -d /Applications/tahoe.app ]; then
|
||||
rm -r /Applications/tahoe.app
|
||||
fi
|
||||
|
||||
if [ -f /etc/paths.d/tahoe ]; then
|
||||
rm /etc/paths.d/tahoe
|
||||
fi
|
||||
|
||||
if [ -f /etc/manpaths.d/tahoe.1 ]; then
|
||||
rm /etc/manpaths.d/tahoe.1
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user