]> git.pld-linux.org Git - packages/gcc.git/blob - branch.sh
- release 2, oneline fix for sigsegv in libgomp
[packages/gcc.git] / branch.sh
1 #!/bin/sh
2 set -e
3 package=gcc
4 svn=svn://gcc.gnu.org/svn/$package
5 branch=branches/$package-8-branch
6 tag=tags/${package}_8_1_0_release
7 out=$package-branch.diff
8
9 # use filterdiff, etc to exclude bad chunks from diff
10 filter() {
11         # remove revno's for smaller diffs
12         # replace svn nonexistend with '0' date, so patch will know that file needs to be removed from disk
13         sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,' | \
14         sed -e 's,^\([-+]\{3\} .*\t\)(nonexistent)$,\11970-01-01 01:00:00.000000000 +0100,'
15 }
16
17 old=$svn/$tag
18 new=$svn/$branch
19 echo >&2 "Running diff: $old -> $new"
20 LC_ALL=C svn diff -x --ignore-eol-style --force --old=$old --new=$new > $out.svn.tmp
21 filter < $out.svn.tmp > $out.tmp
22 rm -f $out.svn.tmp
23
24 if cmp -s $out{,.tmp}; then
25         echo >&2 "No new diffs..."
26         rm -f $out.tmp
27         exit 0
28 fi
29 mv -f $out{.tmp,}
30
31 ../md5 $package.spec
32 ../dropin $out
This page took 0.061849 seconds and 3 git commands to generate.