Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(637)

Side by Side Diff: installer/linux/debian_amd64/prerm

Issue 149132: Initial support for Linux installers. Currently just an amd64 .deb, but more ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « installer/linux/debian_amd64/postinst ('k') | installer/linux/debian_amd64/rules » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Name: svn:executable
+ *
OLDNEW
(Empty)
1 #!/bin/sh
2 # prerm script for google-o3d
3
4 set -e
5
6 # Find out which Debian-derived distro this is.
7 . /etc/lsb-release
8 if test "$DISTRIB_ID" = Ubuntu; then
9 distro=Ubuntu
10 else
11 distro=Other
12 fi
13
14 # The nspluginwrapper package in Ubuntu behaves differently from upstream. By
15 # default it installs the wrapped plugin to multiple directories. -n must be
16 # used to suppress this. Additionally, when using -n the directory that it
17 # installs to is still different. Hence the logic here.
18 if test $distro = Ubuntu; then
19 WRAPPED_PLUGIN_PATH="/usr/lib/nspluginwrapper/plugins/npwrapper.libnpo3dautopl ugin.so"
20 APPS="iceape iceweasel mozilla firefox xulrunner midbrowser xulrunner-addons"
21 else
22 WRAPPED_PLUGIN_PATH="/usr/lib/mozilla/plugins/npwrapper.libnpo3dautoplugin.so"
23 APPS="iceape iceweasel firefox xulrunner midbrowser xulrunner-addons"
24 fi
25
26 case "$1" in
27 remove|upgrade|deconfigure)
28 # Remove the symlinks.
29 for app in $APPS; do
30 # Don't fail if it happens to not be there. User might have removed it
31 # themselves, for example.
32 rm -f /usr/lib/$app/plugins/npwrapper.libnpo3dautoplugin.so
33 done
34 if ! which nspluginwrapper 2>&1 > /dev/null; then
35 echo "Warning: nspluginwrapper not found. Some files may be left over." >& 2
36 else
37 # Remove the wrapper. Again, don't fail.
38 nspluginwrapper -r $WRAPPED_PLUGIN_PATH || { echo "Warning: Unable to remo ve wrapped plugin. Some files may be left over." >&2; }
39 fi
40 ;;
41
42 failed-upgrade)
43 # Executing "old-prerm upgrade" failed. This gets called to take over.
44 # If it succeeds, the upgrade continues and postinst is later called.
45 # We don't want users to get stuck on an old version, so we always continue
46 # the upgrade.
47 echo "Warning: continuing upgrade even though old version wasn't successfull y deconfigured" >&2
48 ;;
49
50 *)
51 echo "prerm called with unknown argument \`$1'" >&2
52 exit 1
53 ;;
54 esac
55
56 # dh_installdeb will replace this with shell code automatically
57 # generated by other debhelper scripts.
58
59 #DEBHELPER#
60
61 exit 0
OLDNEW
« no previous file with comments | « installer/linux/debian_amd64/postinst ('k') | installer/linux/debian_amd64/rules » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698