[libcatmandu-perl] 13/16: Modernize cdbs: Do copyright-check in maintainer script (not during build).

Jonas Smedegaard dr at jones.dk
Sun Oct 1 13:19:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libcatmandu-perl.

commit f9a996d4761598207b6ca344f4e8ec606fd993ba
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Oct 1 15:02:04 2017 +0200

    Modernize cdbs: Do copyright-check in maintainer script (not during build).
---
 debian/copyright-check | 26 ++++++++++++++++++++++++++
 debian/rules           |  3 +--
 2 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/debian/copyright-check b/debian/copyright-check
new file mode 100755
index 0000000..435cef4
--- /dev/null
+++ b/debian/copyright-check
@@ -0,0 +1,26 @@
+#!/bin/sh
+# Copyright © 2016-2017  Jonas Smedegaard <dr at jones.dk>
+# Description: helper script to update copyright_hints
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+set -eu
+
+export DEB_COPYRIGHT_EXTRACT_EXTS="pdf"
+
+make -f /usr/share/cdbs/1/rules/utils.mk pre-build || true
+make -f /usr/share/cdbs/1/rules/utils.mk clean DEB_COPYRIGHT_CHECK_STRICT=1
+
+# unconditionally merge changes - safe to do with git-tracked package
+[ ! -f debian/copyright_newhints ] || mv -f debian/copyright_newhints debian/copyright_hints
diff --git a/debian/rules b/debian/rules
index 5fd53ab..984ca3c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 # -*- mode: makefile; coding: utf-8 -*-
 # Copyright 2013, Vasudev Kamath <kamathvasudev at gmail.com>
-# Copyright 2013-2016, Jonas Smedegaard <dr at jones.dk>
+# Copyright 2013-2017, Jonas Smedegaard <dr at jones.dk>
 # Description: Main Debian packaging script for Catmandu
 #
 # This program is free software; you can redistribute it and/or modify
@@ -17,7 +17,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-include /usr/share/cdbs/1/rules/utils.mk
 include /usr/share/cdbs/1/class/perl-build.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcatmandu-perl.git



More information about the Pkg-perl-cvs-commits mailing list