Add an update-copyright target to refresh debian/copyright using upstream's COPYING files, thanks to Julien Cristau.

This commit is contained in:
Cyril Brulebois 2010-11-12 18:16:36 +01:00
parent 56e01e5132
commit 909222d7e2
3 changed files with 16 additions and 0 deletions

2
debian/changelog vendored
View File

@ -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 <kibi@debian.org> Fri, 12 Nov 2010 18:02:37 +0100

6
debian/copyright.head vendored Normal file
View File

@ -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

8
debian/rules vendored
View File

@ -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