~ubuntu-branches/ubuntu/hardy/firefox-3.0/hardy

« back to all changes in this revision

Viewing changes to debian/firefox-3.0.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack, Alexander Sack
  • Date: 2007-10-05 02:38:08 UTC
  • Revision ID: james.westby@ubuntu.com-20071005023808-51una9yzsey8fl0r
Tags: 3.0~alpha8-0ubuntu1
RELEASE: 3.0~alpha8-0ubuntu1 to gutsy/universe.

[ Alexander Sack ]
* drop libnspr4-dev and libnss3-dev build-depends for gutsy upload.
* don't build with system-nspr/-nss for gutsy universe upload.
* add nspr_flags_by_pkg_config_hack.patch to use pkg-config to get
  nspr libs and cflags from xulrunner-1.9-dev package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
 
6
    update-alternatives --install /usr/bin/x-www-browser \
 
7
        x-www-browser /usr/bin/firefox-3.0 40
 
8
fi
 
9
 
 
10
echo "Please restart all running instances of Firefox-3.0, or you will experience problems."
 
11
 
 
12
UPDATENOTIFIERDIR=/var/lib/update-notifier/user.d
 
13
 
 
14
if [ -d $UPDATENOTIFIERDIR ] ; then
 
15
  # pgrep matches application names from /proc/<pid>/status which is
 
16
  # truncated according to sys/procfs.h definition. Problem is it's
 
17
  # platform dependent. Either 15 or 16 chars.
 
18
  if [ `/usr/bin/pgrep -c firefox-3.0` -ne 0 ] || \
 
19
     [ `/usr/bin/pgrep -c firefox-3.0-bin` -ne 0 ] ;  then
 
20
    cp -f /usr/share/firefox-3.0/firefox-3.0-restart-required.update-notifier \
 
21
        "$UPDATENOTIFIERDIR/firefox-3.0-restart-required"
 
22
  fi
 
23
fi
 
24
 
 
25
# Clean a possible left over
 
26
if [ -f $UPDATENOTIFIERDIR/firefox-trunk-restart-required ] ; then
 
27
  rm -f $UPDATENOTIFIERDIR/firefox-trunk-restart-required
 
28
fi