Remove trailing blank lines when generating INSTALL.

This commit is contained in:
Joseph Myers 2013-08-20 16:41:25 +00:00
parent 4e39af6eca
commit b31469d0d4
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2013-08-20 Joseph Myers <joseph@codesourcery.com>
Roland McGrath <roland@hack.frob.com>
* Makefile (INSTALL): Remove trailing blank lines from output of
makeinfo.
2013-08-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 2013-08-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus): * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):

View File

@ -403,8 +403,13 @@ endif
INSTALL: manual/install.texi manual/macros.texi \ INSTALL: manual/install.texi manual/macros.texi \
$(common-objpfx)manual/pkgvers.texi $(common-objpfx)manual/pkgvers.texi
makeinfo --no-validate --plaintext --no-number-sections \ makeinfo --no-validate --plaintext --no-number-sections \
-I$(common-objpfx)manual $< -o $@ -I$(common-objpfx)manual $< -o $@-tmp
-chmod a-w $@ $(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 $(common-objpfx)manual/%: FORCE
$(MAKE) $(PARALLELMFLAGS) -C manual $@ $(MAKE) $(PARALLELMFLAGS) -C manual $@
FORCE: FORCE: