]> git.pld-linux.org Git - packages/lighttpd.git/blame - branch.sh
branch.sh: use real git
[packages/lighttpd.git] / branch.sh
CommitLineData
68f8f1d1 1#!/bin/sh
51e3e0fc
ER
2set -e
3svn=svn://svn.lighttpd.net/lighttpd
90b8280e 4url=https://git.lighttpd.net/lighttpd/lighttpd1.4.git
c2f7af02 5package=lighttpd
e7612450
ER
6tag=lighttpd-1.4.40
7branch=master
90b8280e
ER
8out=$package-branch.diff
9repo=$package.git
c2f7af02
ER
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
fc34d589
ER
26 # Excluding files which change version or were not in dist tarball
27 filterdiff \
28 -x 'CMakeLists.txt' \
29 -x 'configure.ac' \
30 -x 'SConstruct' \
e7612450 31 | cat
c2f7af02
ER
32}
33
90b8280e
ER
34if [ ! -d $repo ]; then
35 git clone --bare $url -b $branch $repo
36fi
c2f7af02 37
90b8280e
ER
38cd $repo
39 git fetch
40 git diff $tag..$branch | filter > ../$out.tmp
41cd ..
c2f7af02
ER
42
43if cmp -s $out{,.tmp}; then
44 echo >&2 "No new diffs..."
45 rm -f $out.tmp
46 exit 0
47fi
48mv -f $out{.tmp,}
4292d306 49
d0faf49f
ER
50../md5 $package.spec
51../dropin $out
This page took 0.040277 seconds and 4 git commands to generate.