[diffoscope] 01/01: More natural to call the first section by the program name
Ximin Luo
infinity0 at debian.org
Tue Nov 28 18:21:09 CET 2017
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository diffoscope.
commit 58491367cb27301ffc92c2948e9a08ecdb6c016e
Author: Ximin Luo <infinity0 at debian.org>
Date: Tue Nov 28 18:20:52 2017 +0100
More natural to call the first section by the program name
---
README.rst | 4 ++--
doc/Makefile | 8 ++++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/README.rst b/README.rst
index 7cad16f..b503f0f 100644
--- a/README.rst
+++ b/README.rst
@@ -1,5 +1,5 @@
-Description
-===========
+diffoscope
+==========
.. only:: not manpage
diff --git a/doc/Makefile b/doc/Makefile
index 4fffb95..919c926 100755
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -11,6 +11,9 @@ SED_fix_rst2man_quirks = \
-e 's,^ \\- ,,' \
-e 's,^\[,\\[char91],g' \
-e 's,\.TH *"" "" "",,g'
+SED_rst2man_output_to_h2m_input = \
+ -e 's,\.SH \(.*\),[\1],g' \
+ -e 's,\[$(PACKAGE)\],[DESCRIPTION],gi'
all: $(PACKAGE).1
@@ -21,8 +24,9 @@ $(PACKAGE).1: $(PACKAGE).h2m ../$(PACKAGE)/__init__.py
$(PACKAGE).h2m: $(PACKAGE).h2m.0 ../README.rst Makefile
{ cat $(PACKAGE).h2m.0; cat ../README.rst | \
rst2man -q --no-doc-title | \
- sed $(SED_fix_rst2man_quirks) $(SED_fix_package_quirks) \
- -e 's,\.SH \(.*\),[\1],g'; } > "$@"
+ sed $(SED_fix_rst2man_quirks) \
+ $(SED_fix_package_quirks) \
+ $(SED_rst2man_output_to_h2m_input); } > "$@"
.PHONY: clean
clean:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list