aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-08-20 16:41:25 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-08-20 16:41:25 +0000
commitb31469d0d40ac858687657c72baaafd7a63041d9 (patch)
tree4140c6f11c8d5fcf0b9a7b5f2a653ed4a5240e54 /Makefile
parent4e39af6eca18a984c346cb3396940a9dcbed02ab (diff)
downloadglibc-b31469d0d40ac858687657c72baaafd7a63041d9.zip
glibc-b31469d0d40ac858687657c72baaafd7a63041d9.tar.gz
glibc-b31469d0d40ac858687657c72baaafd7a63041d9.tar.bz2
Remove trailing blank lines when generating INSTALL.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
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: