~ubuntu-branches/ubuntu/maverick/firefox/maverick

« back to all changes in this revision

Viewing changes to debian/disable-patches.sh

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-07-15 20:27:51 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20100715202751-f95nl8qwcsuvco0i
Tags: 3.6.7+build2+nobinonly-0ubuntu1
* New upstream release v3.6.7build2 (FIREFOX_3_6_7_BUILD2)

* Make it possible to disable patches on a per-release basis. This
  makes it easier to share packaging branches across releases, and makes
  it possible to disable the patches which make the Hardy daily builds fail
  - update debian/rules
  - add debian/disable-patches.sh
  - add debian/patches/series-disable-patches.8.04
* Make the debian/usr.bin.firefox.apparmor.in target a dependency of
  pre-build rather than makebuilddir. Whilst this doesn't really change
  much, it is technically slightly more correct (makebuilddir is just for
  creating the build directory, whilst pre-build is for doing all the
  preparation work)
  - update debian/rules
* Merge the debian/firefox.sh target in to the match-all target, this
  just de-clutters things a little
  - update debian/rules
* Remove debian/stamp-autotools-files-moz in the clean target
  - update debian/rules
* Drop the empty firefox-dev and firefox-*-dev transitional packages. We
  didn't install anything in to firefox-dev, and we can reintroduce it in
  the future if anything in the archive depends on the browser specific
  interfaces
  - update debian/control
  - remove debian/firefox-dev.install
  - remove debian/firefox-dev.links
* Fix some Lintian warnings
  - add debian/README.source
  - update debian/control
* Make debian/migrator/ffox-beta-profile-migration-dialog a dependency of
  post-patches rather than pre-build. This avoids the need for having to 
  build the profile migrator when unpacking the source tarball
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Copyright (C) 2010 Canonical Ltd 
 
4
#
 
5
# This program is free software; you can redistribute it and/or
 
6
# modify it under the terms of the GNU General Public License as
 
7
# published by the Free Software Foundation; either version 2, or (at
 
8
# your option) any later version.
 
9
#
 
10
# This program is distributed in the hope that it will be useful, but
 
11
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
# General Public License for more details.
 
14
#
 
15
# You should have received a copy of the GNU General Public License along
 
16
# with this program; if not, write to the Free Software Foundation, Inc.,
 
17
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
18
#
 
19
# Authored by Chris Coulson <chris.coulson@canonical.com>
 
20
 
 
21
BASEDIR=$2
 
22
DISABLE_PATCHES_LIST=$1
 
23
 
 
24
if [ "x" = "x${BASEDIR}" ] ; then
 
25
        BASEDIR=`pwd`
 
26
fi
 
27
 
 
28
if [ "x" = "x${DISABLE_PATCHES_LIST}" ] || [ ! -f ${DISABLE_PATCHES_LIST} ] ; then
 
29
        if [ -f ${BASEDIR}/debian/patches/series-disable-patches.${DISABLE_PATCHES_LIST} ] ; then
 
30
                DISABLE_PATCHES_LIST="${BASEDIR}/debian/patches/series-disable-patches.${DISABLE_PATCHES_LIST}"
 
31
        else
 
32
                echo "Must specify a valid list of patches to disable"
 
33
                exit 1
 
34
        fi
 
35
fi
 
36
 
 
37
cp ${BASEDIR}/debian/patches/series ${BASEDIR}/debian/patches/series.orig
 
38
 
 
39
while read line
 
40
do
 
41
        cmd="/^"${line}"$/d"
 
42
        sed -ri $cmd ${BASEDIR}/debian/patches/series
 
43
done < ${DISABLE_PATCHES_LIST}