Fix CR after installing plugins

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

9
debian/rules vendored
View file

@ -63,7 +63,14 @@ dh_auto_install-%:
if [ -n "$$opts" ]; then \
dpkg-shlibdeps -O $$opts | grep shlibs:Depends > debian/$*/substvars ;\
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_%:
set -e; \
export auto_command=`echo $* | sed 's,-.*,,;s,^,dh_auto_,'` ;\