]> git.pld-linux.org Git - packages/lighttpd.git/blame_incremental - branch.sh
- build with lua 5.4 instead of 5.1
[packages/lighttpd.git] / branch.sh
... / ...
CommitLineData
1#!/bin/sh
2set -e
3svn=svn://svn.lighttpd.net/lighttpd
4url=https://git.lighttpd.net/lighttpd/lighttpd1.4.git
5package=lighttpd
6tag=lighttpd-1.4.45
7branch=master
8out=$package-branch.diff
9repo=$package.git
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
26 # Excluding files which change version or were not in dist tarball
27 filterdiff -p1 \
28 -x '.gitignore' \
29 -x 'CMakeLists.txt' \
30 -x 'SConstruct' \
31 -x 'configure.ac' \
32 -x 'packdist.sh' \
33 | cat
34}
35
36if [ ! -d $repo ]; then
37 git clone --bare $url -b $branch $repo
38fi
39
40cd $repo
41 git fetch origin +$branch:$branch +refs/tags/$tag:refs/tags/$tag
42 git log -p --reverse $tag..$branch | filter > ../$out.tmp
43cd ..
44
45if ! test -s $out.tmp; then
46 echo >&2 "No diffs..."
47 rm -f $out.tmp
48 exit 0
49fi
50
51if cmp -s $out{,.tmp}; then
52 echo >&2 "No new diffs..."
53 rm -f $out.tmp
54 exit 0
55fi
56mv -f $out{.tmp,}
57
58../md5 $package.spec
59../dropin $out
This page took 0.024969 seconds and 5 git commands to generate.