X-Git-Url: https://git.tld-linux.org/?p=packages%2Fgcc.git;a=blobdiff_plain;f=branch.sh;h=0d2995ce88fb54b9cd31a654f40f14e23f3b03b4;hp=224d9b04117ea989f32677ced79566f8bdd6c49f;hb=HEAD;hpb=c5379422ea4f476eb59ef6d9e6d1b1667af16c70 diff --git a/branch.sh b/branch.sh index 224d9b0..28866e8 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-8-branch -tag=tags/${package}_8_2_0_release +tag=releases/gcc-13.2.0 +branch=releases/gcc-13 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..."