diff options
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/template.dpatch')
-rw-r--r-- | meta/packages/gcc/gcc-4.3.1/debian/template.dpatch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/template.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/template.dpatch new file mode 100644 index 0000000000..71ffc51cbd --- /dev/null +++ b/meta/packages/gcc/gcc-4.3.1/debian/template.dpatch | |||
@@ -0,0 +1,33 @@ | |||
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 "`basename $0`: script expects -patch|-unpatch as argument" | ||
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 "`basename $0`: script expects -patch|-unpatch as argument" | ||
28 | exit 1 | ||
29 | esac | ||
30 | exit 0 | ||
31 | |||
32 | # append the patch here and adjust the -p? flag in the patch calls. | ||
33 | |||