]> git.pld-linux.org Git - packages/lighttpd.git/blob - branch.sh
- rel 2; use branch diff until .41 is released
[packages/lighttpd.git] / branch.sh
1 #!/bin/sh
2 set -e
3 svn=svn://svn.lighttpd.net/lighttpd
4 url=https://git.lighttpd.net/lighttpd/lighttpd1.4.git
5 package=lighttpd
6 tag=lighttpd-1.4.40
7 branch=personal/gstrauss/master
8 out=$package-branch.diff
9 repo=$package.git
10
11 # old version of this code used to create tarball.
12 # leave it around
13 if [ "$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
21 fi
22
23 d=$-
24 filter() {
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
35 if [ ! -d $repo ]; then
36         git clone --bare $url -b $branch $repo
37 fi
38
39 cd $repo
40         git fetch
41         git log -p --reverse $tag..$branch | filter > ../$out.tmp
42 cd ..
43
44 if cmp -s $out{,.tmp}; then
45         echo >&2 "No new diffs..."
46         rm -f $out.tmp
47         exit 0
48 fi
49 mv -f $out{.tmp,}
50
51 ../md5 $package.spec
52 ../dropin $out
This page took 0.100311 seconds and 3 git commands to generate.