[Pkg-bitcoin-commits] [groestlcoin] 02/04: Modernize cdbs: Do copyright-check in maintainer script (not during build).

Jonas Smedegaard dr at jones.dk
Mon Jun 12 13:36:11 UTC 2017


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

js pushed a commit to branch master
in repository groestlcoin.

commit 4129a60da5d563fa5799b0a4e2599e90f929ce78
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Mon Jun 12 15:09:57 2017 +0200

    Modernize cdbs: Do copyright-check in maintainer script (not during build).
---
 debian/copyright-check | 30 ++++++++++++++++++++++++++++++
 debian/rules           | 10 ++++------
 2 files changed, 34 insertions(+), 6 deletions(-)

diff --git a/debian/copyright-check b/debian/copyright-check
new file mode 100755
index 0000000..d01a704
--- /dev/null
+++ b/debian/copyright-check
@@ -0,0 +1,30 @@
+#!/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
+
+# extract metadata from graphics files before copyright check
+# - and skip compiled localizations, BMP/ICNS/ICO graphics, and PGP key
+export DEB_COPYRIGHT_EXTRACT_EXTS="png psd xcf"
+export DEB_COPYRIGHT_CHECK_IGNORE_EXTS="bmp icns ico pgp"
+export DEB_COPYRIGHT_CHECK_IGNORE_PATHS="src/qt/locale/.*\.ts .*/DS_Store src/test/data/alertTests\.raw"
+
+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 4b4b375..9e332ee 100755
--- a/debian/rules
+++ b/debian/rules
@@ -52,13 +52,11 @@ DEB_INSTALL_MANPAGES_$(pkg-daemon) += \
  contrib/debian/manpages/$(daemon).1
 DEB_INSTALL_MANPAGES_$(pkg-gui) += contrib/debian/manpages/groestlcoin-qt.1
 
-# extract metadata from graphics files before copyright check
-# - and skip compiled localizations, BMP/ICNS/ICO graphics, and PGP key
-DEB_COPYRIGHT_EXTRACT_EXTS = png psd xcf
-DEB_COPYRIGHT_CHECK_IGNORE_EXTS = bmp icns ico pgp
-DEB_COPYRIGHT_CHECK_IGNORE_PATHS = src/qt/locale/.*\.ts .*/DS_Store src/test/data/alertTests\.raw
+# suppress checking license during build
+DEB_COPYRIGHT_CHECK_LICENSECHECK =
+CDBS_BUILD_DEPENDS_rules_utils_copyright-check =
 
-# put aide convenience code copies during build, to avoid accidental use
+# put aside convenience code copies during build, to avoid accidental use
 #DEB_UPSTREAM_CRUFT_MOVE += src/secp256k1
 
 # work around build failure with gcc 4.7

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/groestlcoin.git



More information about the Pkg-bitcoin-commits mailing list