[Pkg-javascript-commits] [node-async] 21/26: Modernize cdbs: Do copyright-check in maintainer script (not during build). Stop build-depend on devscripts.

Jonas Smedegaard dr at jones.dk
Sun Jan 7 17:19:56 UTC 2018


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

js pushed a commit to annotated tag debian/0.8.0-2
in repository node-async.

commit 3749e45f29b039f3e94434bdd9bf4c7b18a6f772
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Jan 7 17:32:43 2018 +0100

    Modernize cdbs: Do copyright-check in maintainer script (not during build). Stop build-depend on devscripts.
---
 debian/control         |  1 -
 debian/copyright-check | 24 ++++++++++++++++++++++++
 debian/rules           |  1 -
 3 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 08a0731..c29101f 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,6 @@ Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Jonas Smedegaard <dr at jones.dk>
 Build-Depends: cdbs,
- devscripts,
  debhelper,
  node-uglify,
 Standards-Version: 4.1.3
diff --git a/debian/copyright-check b/debian/copyright-check
new file mode 100755
index 0000000..129b94d
--- /dev/null
+++ b/debian/copyright-check
@@ -0,0 +1,24 @@
+#!/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
+
+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 2a7eb40..d0e2f98 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,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/rules/debhelper.mk
 
 lib = $(patsubst node-%,%,$(DEB_SOURCE_PACKAGE))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git



More information about the Pkg-javascript-commits mailing list