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