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