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