The preinstall script detects previous installation and removes it.
Author: Ramakrishnan Muthukrishnan <ram@leastauthority.com>
#!/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
--- /dev/null
+#!/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
\ No newline at end of file