]> git.pld-linux.org Git - packages/exim.git/blob - branch.sh
Rel 3; bring back all git fixes
[packages/exim.git] / branch.sh
1 #!/bin/sh
2 set -e
3 url=git://git.exim.org/exim.git
4 package=exim
5 tag=exim-4.96
6 branch=master
7 out=$package-git.patch
8 repo=$package.git
9
10 # use filterdiff, etc to exclude bad chunks from diff
11 filter() {
12     filterdiff \
13         -x '*/test/*' \
14         -x '*/doc/*'
15 }
16
17 if [ ! -d $repo ]; then
18         git clone --bare $url -b $branch $repo
19 fi
20
21 cd $repo
22         git fetch origin +$branch:$branch +refs/tags/$tag:refs/tags/$tag
23         git log -p --reverse --first-parent $tag..$branch ":(exclude)doc/doc-*" ":(exclude)test" ":(exclude).*" | filter > ../$out.tmp
24 cd ..
25
26 if cmp -s $out{,.tmp}; then
27         echo >&2 "No new diffs..."
28         rm -f $out.tmp
29         exit 0
30 fi
31 mv -f $out{.tmp,}
32
33 ../md5 $package.spec
34 ../dropin $out
This page took 0.077712 seconds and 3 git commands to generate.