[med-svn] [biosquid] 01/01: Make sure header files will include licensing statement
Andreas Tille
tille at debian.org
Wed Apr 5 12:04:13 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository biosquid.
commit 893a6959b012502e58166754bb3e018bf978371c
Author: Andreas Tille <tille at debian.org>
Date: Wed Apr 5 14:03:34 2017 +0200
Make sure header files will include licensing statement
---
debian/rules | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index d482630..92a9881 100755
--- a/debian/rules
+++ b/debian/rules
@@ -34,8 +34,13 @@ override_dh_install:
--movedev squidconf.h usr/include/$(DEBPKGNAME) \
--movedev "debian/tmp/usr/lib/*/pkgconfig/*.pc" usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
debian/tmp/usr/lib/*/$(LIBNAME).so
-
-# --movedev "debian/tmp/usr/lib/*/pkgconfig/*.pc" usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
+ # resolve @LICENSE@ by text in header files
+ for HEADER in $(CURDIR)/debian/$(LIBNAME)-dev/usr/include/$(DEBPKGNAME)/*.h ; do \
+ sed '/@LICENSE@/,$$d' $${HEADER} > $${HEADER}_tmp ; \
+ sed 's/^/ * /' Licenses/gnu >> $${HEADER}_tmp ; \
+ sed '0,/@LICENSE@/d' $${HEADER} >> $${HEADER}_tmp ; \
+ mv $${HEADER}_tmp $${HEADER} ; \
+ done
override_dh_installexamples:
dh_installexamples
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/biosquid.git
More information about the debian-med-commit
mailing list