summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2020-07-25 00:37:46 +0200
committerJonas Smedegaard <dr@jones.dk>2020-07-25 00:37:46 +0200
commitf7c1756a99757ad1c8ceb6c63aa6e452e96ffbc2 (patch)
tree9b3abfc0eabaa3a0f4fbd24d3af88c9eea24d0ee
parentfd4f382a794dd91f0ac5040e307dc1fa4258dbc7 (diff)
simplify source script copyright-check
-rwxr-xr-xdebian/copyright-check23
1 files changed, 1 insertions, 22 deletions
diff --git a/debian/copyright-check b/debian/copyright-check
index 129b94d..ed97c4e 100755
--- a/debian/copyright-check
+++ b/debian/copyright-check
@@ -1,24 +1,3 @@
#!/bin/sh
-# Copyright © 2016-2017 Jonas Smedegaard <dr@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
+licensecheck --check '.*' --recursive --copyright --deb-machine --ignore '^(debian/(changelog|copyright(_hints)?))$' --lines 0 --merge-licenses -- * > debian/copyright_hints