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