]> git.pld-linux.org Git - packages/exim.git/blame - branch.sh
Rel 7; bug was in 4.96 itself, so restore branch diff (which also includes fix now...
[packages/exim.git] / branch.sh
CommitLineData
acfdf005
AM
1#!/bin/sh
2set -e
3url=git://git.exim.org/exim.git
4package=exim
0c83653c
AM
5tag=exim-4.96
6branch=master
acfdf005
AM
7out=$package-git.patch
8repo=$package.git
9
10# use filterdiff, etc to exclude bad chunks from diff
11filter() {
0c83653c
AM
12 filterdiff \
13 -x '*/test/*' \
7da037e0
AM
14 -x '*/doc/*' \
15 -x '*/release-process/*'
acfdf005
AM
16}
17
18if [ ! -d $repo ]; then
19 git clone --bare $url -b $branch $repo
20fi
21
22cd $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
25cd ..
26
27if cmp -s $out{,.tmp}; then
28 echo >&2 "No new diffs..."
29 rm -f $out.tmp
30 exit 0
31fi
32mv -f $out{.tmp,}
33
34../md5 $package.spec
35../dropin $out
This page took 0.204656 seconds and 4 git commands to generate.