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