about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2025-06-18 16:29:13 +0900
committerNguyễn Gia Phong <cnx@loang.net>2025-06-18 16:29:13 +0900
commit2ad9177830e41802b673d1fe513bca883c5e496b (patch)
tree10c364208340ae5404b46e06efe932e3649735f9 /doc
parent63f17a58145b827a56c4963ad306157cf2dff887 (diff)
downloadscadere-2ad9177830e41802b673d1fe513bca883c5e496b.tar.gz
Follow help2man's recommendations
* Use argv[0] as help text's prog
* End help text with bug report instruction
* Include copyright and authorship in version text
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile7
-rw-r--r--doc/common.h2m12
2 files changed, 3 insertions, 16 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 47e8669..ed6b571 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -23,16 +23,15 @@ PREFIX ?= /usr/local
 BINDIR ::= $(DESTDIR)$(PREFIX)/bin
 MANDIR ::= $(DESTDIR)$(PREFIX)/share/man
 MAN1 ::= scadere-check.1 scadere-listen.1
-MAN1FLAGS ::= -s 1 --source=Scadere --locale=en_US.UTF-8\
-	--include=common.h2m --no-info
+MAN1FLAGS ::= -s 1 --source=Scadere --locale=en_US.UTF-8 --no-info
 
 all: $(MAN1)
 
-scadere-check.1: $(BINDIR)/scadere-check check.h2m common.h2m
+scadere-check.1: $(BINDIR)/scadere-check check.h2m
 	help2man --name='TLS certificate expiration checker'\
 		$(MAN1FLAGS) --include=check.h2m --output=$@ $<
 
-scadere-listen.1: $(BINDIR)/scadere-listen listen.h2m common.h2m
+scadere-listen.1: $(BINDIR)/scadere-listen listen.h2m
 	help2man --name='Atom feed server to remind of TLS certificate renewal'\
 		$(MAN1FLAGS) --include=listen.h2m --output=$@ $<
 
diff --git a/doc/common.h2m b/doc/common.h2m
deleted file mode 100644
index 4ec20c3..0000000
--- a/doc/common.h2m
+++ /dev/null
@@ -1,12 +0,0 @@
-[author]
-Written by Nguyễn Gia Phong.
-
-[reporting bugs]
-Issues should be reported to <chung@loa.loang.net>.
-
-[copyright]
-This is free software: you are can redistribute and/or modify it
-under the terms of the GNU Affero General Public License version 3 or later
-<https://gnu.org/licenses/agpl>.
-
-There is NO WARRANTY, to the extent permitted by law.