]> git.pld-linux.org Git - packages/gcc.git/blame - branch.sh
- up to 8.2.0
[packages/gcc.git] / branch.sh
CommitLineData
061395ca
ER
1#!/bin/sh
2set -e
3package=gcc
4svn=svn://gcc.gnu.org/svn/$package
f98b59d9 5branch=branches/$package-8-branch
310e3ad0 6tag=tags/${package}_8_2_0_release
061395ca
ER
7out=$package-branch.diff
8
9# use filterdiff, etc to exclude bad chunks from diff
10filter() {
11 # remove revno's for smaller diffs
5b6156b9
AM
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,'
061395ca
ER
15}
16
17old=$svn/$tag
18new=$svn/$branch
19echo >&2 "Running diff: $old -> $new"
20LC_ALL=C svn diff -x --ignore-eol-style --force --old=$old --new=$new > $out.svn.tmp
21filter < $out.svn.tmp > $out.tmp
22rm -f $out.svn.tmp
23
24if cmp -s $out{,.tmp}; then
25 echo >&2 "No new diffs..."
26 rm -f $out.tmp
27 exit 0
28fi
29mv -f $out{.tmp,}
30
31../md5 $package.spec
32../dropin $out
This page took 0.033441 seconds and 4 git commands to generate.