Fix CR after installing plugins

This commit is contained in:
Jan Wagner 2015-02-21 12:27:32 +01:00
parent 7989df9a75
commit 608c53e6c1

7
debian/rules vendored
View file

@ -63,6 +63,13 @@ dh_auto_install-%:
if [ -n "$$opts" ]; then \ if [ -n "$$opts" ]; then \
dpkg-shlibdeps -O $$opts | grep shlibs:Depends > debian/$*/substvars ;\ dpkg-shlibdeps -O $$opts | grep shlibs:Depends > debian/$*/substvars ;\
fi fi
# remove CR from plugins
set -e; \
for fix in `grep -lIUr ' $$' $(CURDIR)/debian/$*/usr/lib/monitoring-plugins | xargs`; do \
if [ -n "$$fix" ]; then \
sed -i 's/ $$//' $$fix ;\
fi ;\
done
dh_auto_%: dh_auto_%:
set -e; \ set -e; \