~ubuntu-branches/ubuntu/hardy/gcj-4.2/hardy-proposed

« back to all changes in this revision

Viewing changes to debian/patches/gpc-gcc-4.x.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-08-27 19:03:56 UTC
  • Revision ID: james.westby@ubuntu.com-20070827190356-mhz77izmwht6vcx7
Tags: 4.2.1-4ubuntu1
Upload as gcj-4.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# DP: The gpc patch from the gpc tarball.
4
4
 
5
 
if [ "x$gpc_gcc_patch" = "x" ]
6
 
then
7
 
  gpc_gcc_patch=gcc-3.2.1.diff
8
 
fi
9
 
 
10
 
pdir=gcc
 
5
dir=
11
6
if [ $# -eq 3 -a "$2" = '-d' ]; then
12
 
    pdir="$3/gcc"
 
7
    #pdir="-d $3/gcc"
 
8
    pdir="-d $3"
 
9
    dir="$3/"
13
10
elif [ $# -ne 1 ]; then
14
11
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
15
12
    exit 1
20
17
 
21
18
case "$1" in
22
19
    -patch)
23
 
        # keep the backup files ... to regenerate p/diffs/${gpc_gcc_patch}
24
 
        # dan@debian.org: no, don't.  Apply it by hand if you need to regen.
25
 
        # get the patch from the gpc source
26
20
        echo Using patch file ${gpc_gcc_patch}
27
 
        patch -d $pdir -f -p2 < ${gpc_gcc_patch}
28
 
        #pf=`echo $0 | sed 's/\.dpatch/.diff/'`
29
 
        #patch -d $pdir -f -p1 < $pf
 
21
        patch $pdir -f -p0 < ${gpc_gcc_patch}
30
22
        ;;
31
23
    -unpatch)
32
24
        # get the patch from the gpc source
33
25
        echo Using patch file ${gpc_gcc_patch}
34
 
        patch -d $pdir -f -R -p2 < ${gpc_gcc_patch}
35
 
        #pf=`echo $0 | sed 's/\.dpatch/.diff/'`
36
 
        #patch -d $pdir -f -R -p1 < $pf
 
26
        patch $pdir -f -R -p0 < ${gpc_gcc_patch}
37
27
        ;;
38
28
    *)
39
29
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"