From 5713f885778f78e48f1f9389dd21f0cb586f6642 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 8 May 2024 01:08:41 +0200 Subject: [PATCH] index.html: Move man page to separate web page. This shortens index.html and simplifies the build because we can ditch the sed command which cuts out the body of the html generated by groff(1). --- Makefile | 7 ++----- index.html.m4 | 13 +------------ 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index 46b9c8c..2db46b2 100644 --- a/Makefile +++ b/Makefile @@ -103,7 +103,6 @@ $(PACKAGE): $(objs) $(call SAY, CC $<) $(CC) -c -o $@ $(DSS_CPPFLAGS) $(CPPFLAGS) $(DSS_CFLAGS) $(CFLAGS) \ -MMD -MF $(*F).d -MT $@ $< - .PHONY: all clean install README .PRECIOUS: %.lsg.c %.lsg.h %.suite %.1 $(PACKAGE).suite: $(PACKAGE).suite.m4 Makefile @@ -123,7 +122,7 @@ $(PACKAGE).suite: $(PACKAGE).suite.m4 Makefile $(GZIP) < $< > $@ %.1.html: %.1 $(call SAY, GROFF $<) - $(GROFF) $< | sed -e '1,/^/d; /^<\/body>/,$$d' > $@ + $(GROFF) $< > $@ clean: $(call SAY, CLEAN) $(RM) *.[od] $(all) *.html $(PACKAGE).1 $(PACKAGE).suite \ @@ -163,7 +162,7 @@ README: index.html.in: index.html.m4 $(call SAY, M4 $<) $(M4) $< > $@ -index.html: dss.1.html index.html.in INSTALL NEWS +index.html: index.html.in INSTALL NEWS $(call SAY, MD $@) sed -e '/@README@/,$$d' index.html.in > $@ printf '

%s

\n' "$(DESCRIPTION1)" >> $@ @@ -174,7 +173,5 @@ index.html: dss.1.html index.html.in INSTALL NEWS sed -e '1,/@NEWS@/d' -e '/@INSTALL@/,$$d' index.html.in >> $@ markdown INSTALL >> $@ sed -e '1,/@INSTALL@/d' -e '/@MAN_PAGE@/,$$d' index.html.in >> $@ - cat dss.1.html >> $@ - sed -e '1,/@MAN_PAGE@/d' index.html.in >> $@ -include Makefile.local diff --git a/index.html.m4 b/index.html.m4 index 4d47de5..91b7411 100644 --- a/index.html.m4 +++ b/index.html.m4 @@ -26,7 +26,6 @@ dnl SPDX-License-Identifier: GPL-2.0 [NEWS] [INSTALL] [Resources] - [Man page]
@@ -70,19 +69,9 @@ dnl SPDX-License-Identifier: GPL-2.0
  • git clone CLONE_URL()
  • Gitweb
  • Author home page
  • +
  • manual page
  • Contact: AUTHOR() <EMAIL()>
  • License: LICENSE()
  • - -
    - -
    -

    - Man page -

    -
    - - @MAN_PAGE@ - -- 2.39.5