[SCM] hydrogen packaging branch, master, updated. 1f8e4361335aef5d223885927c688d654b9566e2

js at users.alioth.debian.org js at users.alioth.debian.org
Tue Mar 2 16:23:15 UTC 2010


The following commit has been merged in the master branch:
commit 2bdd6d3a4751b6e69d653591364f2511e94ca0d6
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Feb 14 20:56:59 2010 +0100

    Allow overriding licensecheck command and args in copyright-check.mk.

diff --git a/debian/cdbs/1/rules/copyright-check.mk b/debian/cdbs/1/rules/copyright-check.mk
index f503525..a74c868 100644
--- a/debian/cdbs/1/rules/copyright-check.mk
+++ b/debian/cdbs/1/rules/copyright-check.mk
@@ -39,17 +39,21 @@ DEB_COPYRIGHT_CHECK_IGNORE_REGEX ?= ^debian/(changelog|copyright(|_hints|_newhin
 # number of lines from the top of each file to investigate
 DEB_COPYRIGHT_CHECK_PARSELINES ?= 99999
 
+DEB_COPYRIGHT_CHECK_SCRIPT ?= licensecheck
+DEB_COPYRIGHT_CHECK_ARGS ?= -c '$(DEB_COPYRIGHT_CHECK_REGEX)' -r --copyright -i '$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)' -l '$(DEB_COPYRIGHT_CHECK_PARSELINES)' *
+DEB_COPYRIGHT_CHECK_INVOKE ?= $(DEB_COPYRIGHT_CHECK_SCRIPT) $(DEB_COPYRIGHT_CHECK_ARGS)
+
 pre-build:: debian/stamp-copyright-check
 
 debian/stamp-copyright-check:
 	@echo 'Scanning upstream source for new/changed copyright notices...'
-	@echo licensecheck -c '$(DEB_COPYRIGHT_CHECK_REGEX)' -r --copyright -i '$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)' -l '$(DEB_COPYRIGHT_CHECK_PARSELINES)' * \
+	@echo $(DEB_COPYRIGHT_CHECK_INVOKE) \
 		"| some-output-filtering..."
 
 # Perl in shell in make requires extra care:
 #  * Single-quoting ('...') protects against shell expansion
 #  * Double-dollar ($$) expands to plain dollar ($) in make
-	@licensecheck -c '$(DEB_COPYRIGHT_CHECK_REGEX)' -r --copyright -i '$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)' -l '$(DEB_COPYRIGHT_CHECK_PARSELINES)' * \
+	@$(DEB_COPYRIGHT_CHECK_INVOKE) \
 		| LC_ALL=C perl -e \
 	'print "Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=135\n";'\
 	'print "X-Draft: Autogenerated by copyright-check.mk - do not trust as-is!\n\n";'\

-- 
hydrogen packaging



More information about the pkg-multimedia-commits mailing list