summaryrefslogtreecommitdiffstats
path: root/reporting/checkout-release
diff options
context:
space:
mode:
Diffstat (limited to 'reporting/checkout-release')
-rwxr-xr-xreporting/checkout-release29
1 files changed, 29 insertions, 0 deletions
diff --git a/reporting/checkout-release b/reporting/checkout-release
new file mode 100755
index 0000000..000f363
--- /dev/null
+++ b/reporting/checkout-release
@@ -0,0 +1,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