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

« back to all changes in this revision

Viewing changes to debian/firefox.sh

  • 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
# Script written by Fabien Tassin <fta@sofaraway.org> in September 2007
 
4
 
 
5
# If there's still no ~/mozilla/firefox-3.0 profile, try to find a previous
 
6
# firefox profile and initialize with that. We'll try to first use
 
7
# 'firefox-trunk' profile, then try 'grandparadiso', then # plain 'firefox'.
 
8
# If nothing is found, we'll go for a fresh run and let firefox create a
 
9
# default profile for us.
 
10
 
 
11
APPNAME=firefox-3.0
 
12
MOZDIR=$HOME/.mozilla
 
13
 
 
14
if [ ! -d $MOZDIR/$APPNAME ] ; then
 
15
  FOUND=""
 
16
  if [ -d $MOZDIR/firefox-trunk ] ; then
 
17
    FOUND=firefox-trunk
 
18
  elif [ -d $MOZDIR/granparadiso ] ; then
 
19
    FOUND=granparadiso
 
20
  elif [ -�d $MOZDIR/firefox ] ; then
 
21
    FOUND=firefox
 
22
  fi
 
23
 
 
24
  if [ "$FOUND" != "" ] ; then
 
25
    echo "*NOTICE* No previous $APPNAME profile found, we'll initialize a profile using a copy of your existing '$FOUND' profile."
 
26
    echo -n "Transfering..."
 
27
    cp -a $MOZDIR/$FOUND $MOZDIR/$APPNAME
 
28
    echo " done."
 
29
  else
 
30
    echo "*NOTICE* No previous firefox profile found, starting with a fresh one"
 
31
  fi
 
32
fi
 
33
 
 
34
exec /usr/lib/$APPNAME/$APPNAME "$@"