From: Joseph Myers Date: Tue, 20 Aug 2013 16:41:25 +0000 (+0000) Subject: Remove trailing blank lines when generating INSTALL. X-Git-Tag: upstream/2.20~1814 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b31469d0d40ac858687657c72baaafd7a63041d9;p=platform%2Fupstream%2Flinaro-glibc.git Remove trailing blank lines when generating INSTALL. --- diff --git a/ChangeLog b/ChangeLog index 18fd09a..0880ef7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-08-20 Joseph Myers + Roland McGrath + + * Makefile (INSTALL): Remove trailing blank lines from output of + makeinfo. + 2013-08-20 Andreas Krebbel * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus): diff --git a/Makefile b/Makefile index 7d8eccf..119bb26 100644 --- a/Makefile +++ b/Makefile @@ -403,8 +403,13 @@ endif INSTALL: manual/install.texi manual/macros.texi \ $(common-objpfx)manual/pkgvers.texi makeinfo --no-validate --plaintext --no-number-sections \ - -I$(common-objpfx)manual $< -o $@ - -chmod a-w $@ + -I$(common-objpfx)manual $< -o $@-tmp + $(AWK) 'NF == 0 { ++n; next } \ + NF != 0 { while (n-- > 0) print ""; n = 0; print }' \ + < $@-tmp > $@-tmp2 + rm -f $@-tmp + -chmod a-w $@-tmp2 + mv -f $@-tmp2 $@ $(common-objpfx)manual/%: FORCE $(MAKE) $(PARALLELMFLAGS) -C manual $@ FORCE: