X-Git-Url: https://git.tld-linux.org/?p=packages%2Fgcc.git;a=blobdiff_plain;f=branch.sh;h=eb61c67bbd39e584702234170c174f9d2863ba07;hp=c476b969e08ca5f66114eddab8c6624d36a1fe14;hb=HEAD;hpb=024a8b62a6c19cc9df96fef6f2a4828841ed9765 diff --git a/branch.sh b/branch.sh index c476b96..28866e8 100755 --- a/branch.sh +++ b/branch.sh @@ -1,23 +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-6-branch -tag=tags/${package}_6_3_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 - sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,' + 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..."