[Pkg-sugar-commit] [python-box2d] 03/10: Modernize cdbs: Do copyright-check in maintainer script (not during build).

Jonas Smedegaard dr at jones.dk
Mon Sep 11 12:36:16 UTC 2017


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

js pushed a commit to branch master
in repository python-box2d.

commit 254a15a4ed8ff328a45386fec464a69cf8a69030
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Tue Jul 18 02:14:36 2017 +0200

    Modernize cdbs: Do copyright-check in maintainer script (not during build).
---
 debian/{rules => copyright-check} | 24 +++++++++++-------------
 debian/rules                      |  1 -
 2 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/debian/rules b/debian/copyright-check
similarity index 51%
copy from debian/rules
copy to debian/copyright-check
index 0fa3057..864080c 100755
--- a/debian/rules
+++ b/debian/copyright-check
@@ -1,6 +1,6 @@
-#!/usr/bin/make -f
-# Copyright 2016 Jonas Smedegaard <dr at jones.dk>
-# Description: Main Debian packaging script for pybox2d
+#!/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
@@ -15,16 +15,14 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-DEB_BUILDDIR = build
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
-include /usr/share/cdbs/1/rules/utils.mk
+set -eu
 
-CDBS_BUILD_DEPENDS +=, python-setuptools, swig
+# extract metadata from fonts and (some) images before copyright check
+export DEB_COPYRIGHT_EXTRACT_EXTS="png ttf"
+export DEB_COPYRIGHT_CHECK_IGNORE_EXTS="tga"
 
-# Don't compress example files
-DEB_COMPRESS_EXCLUDE = .py .txt .ttf
+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
 
-clean::
-	rm -f Box2D/Box2D_wrap.cpp Box2D/Box2D_wrap.h library/Box2D/__init__.py
-	rm -rf build library/Box2D.egg-info
+# 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 0fa3057..678bd5b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,7 +18,6 @@
 DEB_BUILDDIR = build
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
-include /usr/share/cdbs/1/rules/utils.mk
 
 CDBS_BUILD_DEPENDS +=, python-setuptools, swig
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/python-box2d.git



More information about the pkg-sugar-commit mailing list