simplify rules: do copyright-check in maintainer script (not during build)
Jonas Smedegaard
3 years ago
4 | 4 |
Uploaders: Jonas Smedegaard <dr@jones.dk>,
|
5 | 5 |
Luke Faraone <lfaraone@debian.org>
|
6 | 6 |
Build-Depends: cdbs (>= 0.4.90~),
|
7 | |
licensecheck,
|
8 | 7 |
debhelper,
|
9 | 8 |
dh-buildinfo,
|
10 | 9 |
python,
|
|
0 |
#!/bin/sh
|
|
1 |
# Copyright © 2016-2017 Jonas Smedegaard <dr@jones.dk>
|
|
2 |
# Description: helper script to update copyright_hints
|
|
3 |
#
|
|
4 |
# This program is free software; you can redistribute it and/or modify
|
|
5 |
# it under the terms of the GNU General Public License as published by
|
|
6 |
# the Free Software Foundation; either version 3, or (at your option)
|
|
7 |
# any later version.
|
|
8 |
#
|
|
9 |
# This program is distributed in the hope that it will be useful, but
|
|
10 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
12 |
# General Public License for more details.
|
|
13 |
#
|
|
14 |
# You should have received a copy of the GNU General Public License
|
|
15 |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16 |
|
|
17 |
set -eu
|
|
18 |
|
|
19 |
# extract metadata from graphics files before copyright check
|
|
20 |
# * skip zip files currently unsupported by extraction routine
|
|
21 |
export DEB_COPYRIGHT_EXTRACT_EXTS="png"
|
|
22 |
export DEB_COPYRIGHT_CHECK_IGNORE_EXTS="zip"
|
|
23 |
|
|
24 |
make -f /usr/share/cdbs/1/rules/utils.mk pre-build || true
|
|
25 |
make -f /usr/share/cdbs/1/rules/utils.mk clean DEB_COPYRIGHT_CHECK_STRICT=1
|
|
26 |
|
|
27 |
# unconditionally merge changes - safe to do with git-tracked package
|
|
28 |
[ ! -f debian/copyright_newhints ] || mv -f debian/copyright_newhints debian/copyright_hints
|
0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
|
2 | |
include /usr/share/cdbs/1/rules/utils.mk
|
3 | 2 |
include /usr/share/cdbs/1/class/python-sugar.mk
|
4 | 3 |
include /usr/share/cdbs/1/rules/debhelper.mk
|
5 | 4 |
|