[libvirt] [PATCH] doc: don't emit trailing blanks into generated and VC'd NEWS file

Jim Meyering jim at meyering.net
Tue Sep 15 13:02:49 UTC 2009


Daniel Veillard reported that the generated and VC'd NEWS file
was causing trouble because the latest version contains trailing
spaces, which conflicts with our server-side hook to prevent that.

Here's the fix to avoid emitting those trailing spaces:

>From 8110d304f49a217021371321ade0026ccd2627e1 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Tue, 15 Sep 2009 15:01:26 +0200
Subject: [PATCH] doc: don't emit trailing blanks into generated and VC'd NEWS file

* docs/Makefile.am ($(top_builddir)/NEWS): Filter out trailing
white space.
---
 docs/Makefile.am |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/docs/Makefile.am b/docs/Makefile.am
index 9ac2f6d..1125931 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -131,6 +131,7 @@ $(top_builddir)/NEWS: $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html.i
 	  $(XSLTPROC) --nonet $(top_srcdir)/docs/news.xsl	\
 	     $(top_srcdir)/docs/news.html.in			\
 	   | perl -0777 -pe 's/\n\n+$$/\n/'			\
+	   | perl -pe 's/[ \t]+$//'				\
 	   > $@-t && mv $@-t $@ ; fi );

 clean-local:
--
1.6.5.rc1.171.g3f463




More information about the libvir-list mailing list