summaryrefslogtreecommitdiffstats
path: root/reporting/checkout-release
blob: 000f363f499271412f4139fae461832971ae9d04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
# Copyright (C) 2008 Frank Lichtenheld <djpig@debian.org>, if at all copyrightable
# Copyright (C) 2009 Russ Allbery <rra@debian.org>

# Helper script for updating lintian.debian.org to the latest lintian release
# Call with the release number as only argument, e.g.
#
#   $ cd /org/lintian.debian.org && ./root/reporting/checkout-release 1.25.0

set -e

if [ $# -ne 1 ]; then
    echo "Usage: checkout-release <version-number>"
    exit 2
fi
release=$1

set -x

cd root
git fetch
git merge "$release"
perl -i -pe "s/(LINTIAN_VERSION = )\S+/$1\"$release\";/" root/frontend/lintian
debian/rules build

# Local Variables:
# indent-tabs-mode: nil
# End:
# vim: syntax=sh sw=4 sts=4 sr et