]> git.pld-linux.org Git - packages/lighttpd.git/blame_incremental - branch.sh
do not override _libdir macro
[packages/lighttpd.git] / branch.sh
... / ...
CommitLineData
1#!/bin/sh
2set -e
3svn=svn://svn.lighttpd.net/lighttpd
4url=https://git.lighttpd.net/lighttpd/lighttpd1.4.git
5package=lighttpd
6tag=lighttpd-1.4.41
7branch=master
8out=$package-branch.diff
9repo=$package.git
10
11# old version of this code used to create tarball.
12# leave it around
13if [ "$1" = "tarball" ]; then
14 v=1.5
15 svn co $svn/trunk $package-$v
16 r=$(svnversion $package-$v)
17 t=$package-r$r.tar.bz2
18 tar -cjf $t --exclude-vcs $package-$v
19 ../dropin $t &
20 exit 0
21fi
22
23d=$-
24filter() {
25 set -$d
26 # Excluding files which change version or were not in dist tarball
27 filterdiff -p1 \
28 -x 'CMakeLists.txt' \
29 -x 'configure.ac' \
30 -x 'SConstruct' \
31 -x 'packdist.sh' \
32 | cat
33}
34
35if [ ! -d $repo ]; then
36 git clone --bare $url -b $branch $repo
37fi
38
39cd $repo
40 git fetch origin +$branch:refs/remotes/origin/$branch +refs/tags/$tag:refs/tags/$tag
41 git log -p --reverse $tag..$branch | filter > ../$out.tmp
42cd ..
43
44if cmp -s $out{,.tmp}; then
45 echo >&2 "No new diffs..."
46 rm -f $out.tmp
47 exit 0
48fi
49mv -f $out{.tmp,}
50
51../md5 $package.spec
52../dropin $out
This page took 0.062 seconds and 4 git commands to generate.