~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to debian/patches/template.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-mr2oo53y4j8vpldi
Tags: 3.1~a1+20090322-1
* Python 3.1 alpha1 release.
* Update to the trunk, 20090322.
* Update installation schemes: LP: #338395.
  - When the --prefix option is used for setup.py install, Use the
    `unix_prefix' scheme.
  - Use the `deb_system' scheme if --install-layout=deb is specified.
  - Use the the `unix_local' scheme if neither --install-layout=deb
    nor --prefix is specified.
* Use the information in /etc/lsb-release for platform.dist(). LP: #196526.
* pydoc: Fix detection of local documentation files.
* Build a shared library configured --with-pydebug. LP: #322580.
* Fix some lintian warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
 
 
3
# All lines beginning with `# DPATCH:' are a description of the patch.
 
4
# DP: <your description>
 
5
 
 
6
# remove the next line
 
7
exit 0
 
8
 
 
9
dir=
 
10
if [ $# -eq 3 -a "$2" = '-d' ]; then
 
11
    pdir="-d $3"
 
12
    dir="$3/"
 
13
elif [ $# -ne 1 ]; then
 
14
    echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
 
15
    exit 1
 
16
fi
 
17
case "$1" in
 
18
    -patch)
 
19
        patch $pdir -f --no-backup-if-mismatch -p0 < $0
 
20
        #cd ${dir}gcc && autoconf
 
21
        ;;
 
22
    -unpatch)
 
23
        patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
 
24
        #rm ${dir}gcc/configure
 
25
        ;;
 
26
    *)
 
27
        echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
 
28
        exit 1
 
29
esac
 
30
exit 0
 
31
 
 
32
# append the patch here and adjust the -p? flag in the patch calls.