]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
man: stop removing DISTCONFDIR lines
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 8 Jul 2024 13:43:14 +0000 (14:43 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 9 Jul 2024 05:18:21 +0000 (00:18 -0500)
Presently when DISTCONFDIR is identical to /lib we remove the whole
line, since the man pages already have an /lib instance.

At the same time, there are in-text DISTCONFDIR entries, and removing
the whole line outright breaks the documentation.

Drop the removal line - worst case scenario we get a duplicate entry in
the synopsis.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
man/Makefile.am

index 77a0035755c281351ceea749deae06859ebd0e28..39a001551688d2d2e3cd535d2ba3678240e79d6e 100644 (file)
@@ -14,11 +14,8 @@ EXTRA_DIST = $(MAN5:%.5=%.5.scd) $(MAN8:%.8=%.8.scd)
 CLEANFILES = $(filter-out $(MAN_STUB), $(dist_man_MANS))
 
 define generate_manpage
-       $(AM_V_SCDOC)if [ '$(distconfdir)' != '/lib' ] ; then \
-               sed -e 's|@DISTCONFDIR@|$(distconfdir)|g' $< ; \
-       else \
-               sed -e '/@DISTCONFDIR@/d' $< ; \
-       fi | \
+       $(AM_V_SCDOC)cat $< | \
+       sed -e 's|@DISTCONFDIR@|$(distconfdir)|g' | \
        sed -e 's|@MODULE_DIRECTORY@|$(module_directory)|g' | \
        $(SCDOC) > $@
 endef