]> git.pld-linux.org Git - packages/exim.git/blob - branch.sh
Rel 25; unofficial hotfix for some of recent SECURITY issues (timelime for official...
[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 '*/Readme.pod' \
14         -x '*/test/*' \
15         -x '*/doc/*' \
16         -x '*/release-process/*'
17 }
18
19 if [ ! -d $repo ]; then
20         git clone --bare $url -b $branch $repo
21 fi
22
23 cd $repo
24         git fetch origin +$branch:$branch +refs/tags/$tag:refs/tags/$tag
25         git log -p --reverse --first-parent $tag..$branch ":(exclude)doc/doc-*" ":(exclude)test" ":(exclude).*" | filter > ../$out.tmp
26 cd ..
27
28 if cmp -s $out{,.tmp}; then
29         echo >&2 "No new diffs..."
30         rm -f $out.tmp
31         exit 0
32 fi
33 mv -f $out{.tmp,}
34
35 ../md5 $package.spec
36 ../dropin $out
This page took 0.022183 seconds and 3 git commands to generate.