[Debian-ha-commits] [resource-agents] 04/11: debian/rules: use first non-empty line for agent description

Valentin Vidic vvidic-guest at moszumanska.debian.org
Sun Nov 26 13:19:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

vvidic-guest pushed a commit to branch master
in repository resource-agents.

commit 32f9076508c36c828ce9e8bd7b2fb7395b54335e
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date:   Sun Nov 26 00:55:40 2017 +0100

    debian/rules: use first non-empty line for agent description
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 6f6f0f7..50dc5bb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -44,7 +44,7 @@ override_dh_gencontrol:
 	  echo -n "agents="; \
 	  for agent in debian/resource-agents/usr/lib/ocf/resource.d/heartbeat/*; do \
 	    echo "$$agent meta-data ..." >&2; \
-	    desc=$$($$agent meta-data 2>/dev/null | xml_grep --root resource-agent/shortdesc --text_only | head -1); \
+	    desc=$$($$agent meta-data 2>/dev/null | xml_grep --root resource-agent/shortdesc --text_only | sed -n '/^$$/!{s/^ *//p; q}'); \
 	    line=$$(echo "$$(basename $$agent): $$desc" | sed -e 's/^\(.\{75\}\).\{4\}.*/\1.../'); \
 	    echo -n " $$line\$${Newline}"; \
 	  done; \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/resource-agents.git



More information about the Debian-HA-Commits mailing list