summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-4.3.1/debian/svn-class-updates.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/svn-class-updates.dpatch')
-rw-r--r--meta/packages/gcc/gcc-4.3.1/debian/svn-class-updates.dpatch55
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/svn-class-updates.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/svn-class-updates.dpatch
new file mode 100644
index 0000000000..14274d86cf
--- /dev/null
+++ b/meta/packages/gcc/gcc-4.3.1/debian/svn-class-updates.dpatch
@@ -0,0 +1,55 @@
1#! /bin/sh -e
2
3# DP: updated class files from the 4.2 branch upto 20070804.
4
5dir=
6if [ $# -eq 3 -a "$2" = '-d' ]; then
7 pdir="-d $3"
8 dir="$3/"
9elif [ $# -ne 1 ]; then
10 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11 exit 1
12fi
13case "$1" in
14 -patch)
15 set -x
16 uudecode class-files.tar.bz2.uue
17 tar -xv -f class-files.tar.bz2 -C $dir
18 rm -f class-files.tar.bz2
19 ;;
20 -unpatch)
21 echo "cannot undo patch $(basename $0)"
22 ;;
23 *)
24 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
25 exit 1
26esac
27exit 0
28
29
30#! /bin/sh
31
32dir=gcc-4_2-ubuntu-branch
33tag=ubuntu/gcc-4_2_1-release
34branch=ubuntu/gcc-4_2-branch
35
36tmplist=files$$
37
38svn diff --summarize \
39 svn://gcc.gnu.org/svn/gcc/tags/$tag \
40 svn://gcc.gnu.org/svn/gcc/branches/$branch \
41 | grep '\.class$' > $tmplist
42
43sed -n '/^[AM].*\.class$/s,.*/'$tag'/\(.*\),\1,p' $tmplist \
44 > neworchanged.list
45sed -n '/^[D].*\.class$/s,.*/'$tag'/\(.*\),\1,p' $tmplist \
46 > removed.list
47sed -n '/^[^ADM].*\.class$/s,.*/'$tag'/\(.*\),\1,p' $tmplist \
48 > unknown.list
49
50echo "new or changed: $(wc -l neworchanged.list | cut '-d ' -f1), removed $(wc -l removed.list | cut '-d ' -f1): , unknown: $(wc -l unknown.list | cut '-d ' -f1)"
51tar -c -j -f class-files.tar.bz2 -C $dir -T neworchanged.list
52uuencode class-files.tar.bz2 class-files.tar.bz2 > class-files.tar.bz2.uue
53
54rm -f $tmplist neworchanged.list removed.list unknown.list
55