From 1f68e44a42cfc257ff0fc7ab05958ec8805bc5d9 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Thu, 21 Jun 2007 22:48:43 +0300 Subject: [PATCH] elinkskeys.5: Revert 8f030fcb63b3, which ESR did not review. Revert 8f030fcb63b35e83bffcdf432cebce46f8a8e7e0, "Hack elinkskeys.5 with sed some more, to please ESR." I asked ESR on 2007-01-06 and 2007-06-09 whether the changes were OK, but he never answered. So I'm reverting the changes until someone with troff knowledge reviews them. --- doc/Makefile | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index eb6980fd1..c1943aca5 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -165,24 +165,11 @@ asciidoc_dep = sed -n 's/[{]builddir}//g;s@include::\(.*\)\[.*@$@: $< \1@p' < $< -include .deps/*.asciidoc # Do a little post-processing of man pages. Inserting title headers and date. -# - Change SYNOPSIS to OVERVIEW in elinkskeys.5 (but not in elinks.1). -# SYNOPSIS isn't supposed to contain running text. But AsciiDoc -# 7.1.2 complains "ERROR: elinkskeys.5.txt: line 10: second section -# must be named SYNOPSIS" so we can't change this in elinkskeys.5.txt. -# - Write backslash as "\e" not "\\", but be careful not to replace -# double-backslashes that actually mean something else. This is -# apparently a bug in db2man, which xmlto runs. -# Run all the hacks together in one sed command so that we get the right -# exit code if there is an error somewhere in the middle. MAN_DATE = $(shell date -I) man_desc = `sed -n 's/:Description:\s*\(.*\)/\1/p' < $(srcdir)$(subst .xml,.txt,$( $@.tmp \ - && mv $@.tmp $@ +man_hack = sed "s/^\(\.TH \"ELINKS[^\"]*\" [0-9] \).*/\1\"$(1)\" \"$(MAN_DATE)\" \"$(1)\"/" < $@ | \ + sed "s/@squote@/\\\\'/g" > $@.tmp && mv $@.tmp $@ + ############################################################################# # Build recipies