aboutsummaryrefslogtreecommitdiff
path: root/contrib/osx/TorPostflight
diff options
context:
space:
mode:
authorAndrew Lewman <andrew@torproject.org>2006-03-11 06:13:08 +0000
committerAndrew Lewman <andrew@torproject.org>2006-03-11 06:13:08 +0000
commita7768d77fec95cfc5206e8b09945409d16eeab5c (patch)
tree4c6e56020701ad47631e2bac8b7db61df02452c5 /contrib/osx/TorPostflight
parent5f459211867f1c524d7087432c78d931ea2257e4 (diff)
downloadtor-a7768d77fec95cfc5206e8b09945409d16eeab5c.tar
tor-a7768d77fec95cfc5206e8b09945409d16eeab5c.tar.gz
Include package_list.txt for detailed uninstallation on osx. Force the
osx uninstall script to actually clean up directories as well. Make TorPostflight actions safer. svn:r6123
Diffstat (limited to 'contrib/osx/TorPostflight')
-rw-r--r--contrib/osx/TorPostflight18
1 files changed, 16 insertions, 2 deletions
diff --git a/contrib/osx/TorPostflight b/contrib/osx/TorPostflight
index 037237eb4..d1efd726c 100644
--- a/contrib/osx/TorPostflight
+++ b/contrib/osx/TorPostflight
@@ -68,7 +68,21 @@ if [ -d /Library/StartupItems/Privoxy ]; then
fi
# Copy Documentation
-cp -r $PACKAGE_PATH/Contents/Resources/documents $TARGET/documents
+if [ -d $PACKAGE_PATH/Contents/Resources/documents ];then
+ cp -r $PACKAGE_PATH/Contents/Resources/documents $TARGET/documents
+fi
# Copy Uninstaller
-cp -r $PACKAGE_PATH/Contents/Resources/*ninstall* $TARGET/
+if [ -f $PACKAGE_PATH/Contents/Resources/Tor_Uninstaller.applescript ]; then
+ cp $PACKAGE_PATH/Contents/Resources/Tor_Uninstaller.applescript $TARGET/Tor_Uninstaller.applescript
+ chmod 755 $TARGET/Tor_Uninstaller.applescript
+fi
+
+if [ -f $PACKAGE_PATH/Contents/Resources/uninstall_tor_bundle.sh ]; then
+ cp $PACKAGE_PATH/Contents/Resources/uninstall_tor_bundle.sh $TARGET/uninstall_tor_bundle.sh
+ chmod 755 $TARGET/uninstall_tor_bundle.sh
+fi
+
+if [ -f $PACKAGE_PATH/Contents/Resources/package_list.txt ]; then
+ cp $PACKAGE_PATH/Contents/Resources/package_list.txt $TARGET/package_list.txt
+fi