]>
Commit | Line | Data |
---|---|---|
68f8f1d1 | 1 | #!/bin/sh |
51e3e0fc ER |
2 | set -e |
3 | svn=svn://svn.lighttpd.net/lighttpd | |
e7612450 | 4 | url=https://github.com/lighttpd/lighttpd1.4 |
c2f7af02 | 5 | package=lighttpd |
e7612450 ER |
6 | tag=lighttpd-1.4.40 |
7 | branch=master | |
c2f7af02 ER |
8 | out=lighttpd-branch.diff |
9 | ||
10 | # old version of this code used to create tarball. | |
11 | # leave it around | |
12 | if [ "$1" = "tarball" ]; then | |
13 | v=1.5 | |
14 | svn co $svn/trunk $package-$v | |
15 | r=$(svnversion $package-$v) | |
16 | t=$package-r$r.tar.bz2 | |
17 | tar -cjf $t --exclude-vcs $package-$v | |
18 | ../dropin $t & | |
19 | exit 0 | |
20 | fi | |
21 | ||
22 | d=$- | |
23 | filter() { | |
24 | set -$d | |
fc34d589 ER |
25 | # Excluding files which change version or were not in dist tarball |
26 | filterdiff \ | |
27 | -x 'CMakeLists.txt' \ | |
28 | -x 'configure.ac' \ | |
29 | -x 'SConstruct' \ | |
e7612450 | 30 | | cat |
c2f7af02 ER |
31 | } |
32 | ||
e7612450 ER |
33 | echo >&2 "Running diff: $tag...$branch" |
34 | LC_ALL=C curl -Ss $url/compare/$tag...$branch.patch > $out.tmp | |
c2f7af02 | 35 | |
c2f7af02 ER |
36 | filter < $out.tmp > $out.tmp2 && mv -f $out.{tmp2,tmp} |
37 | ||
38 | if cmp -s $out{,.tmp}; then | |
39 | echo >&2 "No new diffs..." | |
40 | rm -f $out.tmp | |
41 | exit 0 | |
42 | fi | |
43 | mv -f $out{.tmp,} | |
4292d306 | 44 | |
d0faf49f ER |
45 | ../md5 $package.spec |
46 | ../dropin $out |