~ubuntu-branches/ubuntu/karmic/gears/karmic

« back to all changes in this revision

Viewing changes to gears/tools/osx/clean_gears.sh

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Lesicnik
  • Date: 2009-04-30 19:15:25 UTC
  • Revision ID: james.westby@ubuntu.com-20090430191525-0790sb5wzg8ou0xb
Tags: upstream-0.5.21.0~svn3334+dfsg
ImportĀ upstreamĀ versionĀ 0.5.21.0~svn3334+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Remove all files relating to Gears for Safari, except for the Gears data
 
4
# directory in "~/Library/Application Support/Google/Gears for Safari/".
 
5
rm -rf '~/Library/Internet Plugins/Gears.plugin'
 
6
sudo rm -rf "/Library/Internet Plug-Ins/Gears.plugin/"
 
7
 
 
8
# Make sure script is run as root.
 
9
if [ ${EUID:-1} -ne 0 ]; then
 
10
  sudo "$0" $*
 
11
  exit $?
 
12
fi
 
13
 
 
14
rm -rf "/Library/InputManagers/GearsEnabler"
 
15
rm -rf "/Library/Receipts/Gears.pkg"
 
16
rm -rf "/Library/Receipts/Google Gears.pkg"
 
17
 
 
18
echo "Removed Gears for Safari."