]> git.pld-linux.org Git - packages/exim.git/blob - branch.sh
- up to 4.90.1; fixes CVE-2018-6789 (potential remote execution)
[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_90_1
6 branch=exim-4_90+fixes
7 out=$package-git.patch
8 repo=$package.git
9
10 # use filterdiff, etc to exclude bad chunks from diff
11 filter() {
12         cat
13 }
14
15 if [ ! -d $repo ]; then
16         git clone --bare $url -b $branch $repo
17 fi
18
19 cd $repo
20         git fetch origin +$branch:$branch +refs/tags/$tag:refs/tags/$tag
21         git log -p --reverse $tag..$branch ":(exclude)doc/doc-*" ":(exclude)test" ":(exclude).*" | filter > ../$out.tmp
22 cd ..
23
24 if cmp -s $out{,.tmp}; then
25         echo >&2 "No new diffs..."
26         rm -f $out.tmp
27         exit 0
28 fi
29 mv -f $out{.tmp,}
30
31 ../md5 $package.spec
32 ../dropin $out
This page took 0.048417 seconds and 3 git commands to generate.