3 svn=svn://svn.lighttpd.net/lighttpd
4 url=https://git.lighttpd.net/lighttpd/lighttpd1.4.git
8 out=$package-branch.diff
11 # old version of this code used to create tarball.
13 if [ "$1" = "tarball" ]; then
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
26 # Excluding files which change version or were not in dist tarball
36 if [ ! -d $repo ]; then
37 git clone --bare $url -b $branch $repo
41 git fetch origin +$branch:$branch +refs/tags/$tag:refs/tags/$tag
42 git log -p --reverse $tag..$branch | filter > ../$out.tmp
45 if ! test -s $out.tmp; then
46 echo >&2 "No diffs..."
51 if cmp -s $out{,.tmp}; then
52 echo >&2 "No new diffs..."