]> git.pld-linux.org Git - packages/lighttpd.git/blame - branch.sh
update branch.sh to pull diff from github
[packages/lighttpd.git] / branch.sh
CommitLineData
68f8f1d1 1#!/bin/sh
51e3e0fc
ER
2set -e
3svn=svn://svn.lighttpd.net/lighttpd
e7612450 4url=https://github.com/lighttpd/lighttpd1.4
c2f7af02 5package=lighttpd
e7612450
ER
6tag=lighttpd-1.4.40
7branch=master
c2f7af02
ER
8out=lighttpd-branch.diff
9
10# old version of this code used to create tarball.
11# leave it around
12if [ "$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
20fi
21
22d=$-
23filter() {
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
33echo >&2 "Running diff: $tag...$branch"
34LC_ALL=C curl -Ss $url/compare/$tag...$branch.patch > $out.tmp
c2f7af02 35
c2f7af02
ER
36filter < $out.tmp > $out.tmp2 && mv -f $out.{tmp2,tmp}
37
38if cmp -s $out{,.tmp}; then
39 echo >&2 "No new diffs..."
40 rm -f $out.tmp
41 exit 0
42fi
43mv -f $out{.tmp,}
4292d306 44
d0faf49f
ER
45../md5 $package.spec
46../dropin $out
This page took 0.05601 seconds and 4 git commands to generate.