]> git.pld-linux.org Git - packages/lighttpd.git/blob - branch.sh
05e89e57cf43cb15c387ba8d203ff97d469e9246
[packages/lighttpd.git] / branch.sh
1 #!/bin/sh
2 set -e
3 svn=svn://svn.lighttpd.net/lighttpd
4 url=https://github.com/lighttpd/lighttpd1.4
5 package=lighttpd
6 tag=lighttpd-1.4.40
7 branch=master
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
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' \
30         | cat
31 }
32
33 echo >&2 "Running diff: $tag...$branch"
34 LC_ALL=C curl -Ss $url/compare/$tag...$branch.patch > $out.tmp
35
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,}
44
45 ../md5 $package.spec
46 ../dropin $out
This page took 0.094236 seconds and 2 git commands to generate.