X-Git-Url: https://git.tld-linux.org/?p=packages%2Fgcc.git;a=blobdiff_plain;f=branch.sh;h=11806e05816d46ef173d0a67582193e30e9f9f3e;hp=786711f3f7d2e32b0078baf51c52c819831e52a9;hb=c5a41995c71ea9b25cba74c15a20e216a2485cbb;hpb=a0d803c12a6e6c5280d54622c1d52f63949e03c0 diff --git a/branch.sh b/branch.sh index 786711f..11806e0 100755 --- a/branch.sh +++ b/branch.sh @@ -1,25 +1,25 @@ #!/bin/sh set -e +url=git://gcc.gnu.org/git/gcc.git package=gcc -svn=svn://gcc.gnu.org/svn/$package -branch=branches/$package-9-branch -tag=tags/${package}_9_2_0_release +tag=releases/gcc-9.3.0 +branch=releases/gcc-9 out=$package-branch.diff +repo=$package.git # use filterdiff, etc to exclude bad chunks from diff filter() { - # remove revno's for smaller diffs - # replace svn nonexistend with '0' date, so patch will know that file needs to be removed from disk - sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,' | \ - sed -e 's,^\([-+]\{3\} .*\t\)(nonexistent)$,\11970-01-01 01:00:00.000000000 +0100,' + cat } -old=$svn/$tag -new=$svn/$branch -echo >&2 "Running diff: $old -> $new" -LC_ALL=C svn diff -x --ignore-eol-style --force --old=$old --new=$new > $out.svn.tmp -filter < $out.svn.tmp > $out.tmp -rm -f $out.svn.tmp +if [ ! -d $repo ]; then + git clone --bare $url -b $branch $repo +fi + +cd $repo + git fetch origin +$branch:$branch +refs/tags/$tag:refs/tags/$tag + git log -p --reverse $tag..$branch ":(exclude)doc/doc-*" ":(exclude)test" ":(exclude).*" | filter > ../$out.tmp +cd .. if cmp -s $out{,.tmp}; then echo >&2 "No new diffs..."