[med-svn] [biosquid] 01/02: Make sure license is only injected if placeholder is available
Andreas Tille
tille at debian.org
Wed Apr 5 14:49:32 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 5cdf882ec61f942287b15095c7fdbccaf9894247
Author: Andreas Tille <tille at debian.org>
Date: Wed Apr 5 15:10:10 2017 +0200
Make sure license is only injected if placeholder is available
---
debian/rules | 2 ++
1 file changed, 2 insertions(+)
diff --git a/debian/rules b/debian/rules
index 92a9881..daaa95e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -36,10 +36,12 @@ override_dh_install:
debian/tmp/usr/lib/*/$(LIBNAME).so
# resolve @LICENSE@ by text in header files
for HEADER in $(CURDIR)/debian/$(LIBNAME)-dev/usr/include/$(DEBPKGNAME)/*.h ; do \
+ if grep -q '@LICENSE@' $${HEADER} ; then \
sed '/@LICENSE@/,$$d' $${HEADER} > $${HEADER}_tmp ; \
sed 's/^/ * /' Licenses/gnu >> $${HEADER}_tmp ; \
sed '0,/@LICENSE@/d' $${HEADER} >> $${HEADER}_tmp ; \
mv $${HEADER}_tmp $${HEADER} ; \
+ fi ; \
done
override_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