From 909222d7e28150d46a0546aa52902fb857fe1fca Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Fri, 12 Nov 2010 18:16:36 +0100 Subject: [PATCH] Add an update-copyright target to refresh debian/copyright using upstream's COPYING files, thanks to Julien Cristau. --- debian/changelog | 2 ++ debian/copyright.head | 6 ++++++ debian/rules | 8 ++++++++ 3 files changed, 16 insertions(+) create mode 100644 debian/copyright.head diff --git a/debian/changelog b/debian/changelog index 5c14881..816a559 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,8 @@ x11-xserver-utils (7.6~1) UNRELEASED; urgency=low * xset 1.2.1 * xsetroot 1.1.0 * xstdcmap 1.0.2 + * Add an update-copyright target to refresh debian/copyright using + upstream's COPYING files, thanks to Julien Cristau. -- Cyril Brulebois Fri, 12 Nov 2010 18:02:37 +0100 diff --git a/debian/copyright.head b/debian/copyright.head new file mode 100644 index 0000000..b3faaeb --- /dev/null +++ b/debian/copyright.head @@ -0,0 +1,6 @@ +The contents of this package were downloaded from +http://xorg.freedesktop.org/releases/individual/app/ + +It contains the iceauth, rgb, sessreg, xcmsdb, xgamma, xhost, xmodmap, xrandr, +xrdb, xrefresh, xset, xsetmode, xsetpointer, xsetroot, xstdcmap, xvidtune +applications diff --git a/debian/rules b/debian/rules index e2f6799..a856c7a 100755 --- a/debian/rules +++ b/debian/rules @@ -113,3 +113,11 @@ get-tarballs: $(addprefix get-tarball-,$(SUBDIRS)) .PHONY: get-tarball-% get-tarball-%: uscan --no-conf --download --no-symlink --destdir . --package $* --upstream-version $(shell awk -F = '/^PACKAGE_VERSION=/ { print $$2 }' < $*/configure || echo 0) --watchfile debian/watch.$* || test $$? = 1 + +update-copyright: $(addsuffix /COPYING, $(SUBDIRS)) debian/copyright.head + cp debian/copyright.head debian/copyright + for subdir in $(SUBDIRS); do \ + echo >> debian/copyright && \ + echo $$subdir: >> debian/copyright && \ + sed -e 's/^./ &/' < $$subdir/COPYING >> debian/copyright \ + || exit; done