From 608c53e6c14b02b4cef9b47c68ef341fe4452824 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sat, 21 Feb 2015 12:27:32 +0100 Subject: [PATCH] Fix CR after installing plugins --- debian/rules | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 0bb31a2..d451b81 100755 --- a/debian/rules +++ b/debian/rules @@ -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_,'` ;\