Description: Devolving to Makefile.in the task of mangling names and section of man page
 We are removing from debian/rules the cumbersome task of moving and then mangling the
 package manual page. We do it more cleanely in Makefile.in
Author: Massimo Manghi <mxmanghi@apache.org>
Forwarded: not-needed
Last-Update: 2025-12-23 
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile.in
+++ b/Makefile.in
@@ -211,10 +211,8 @@
 #========================================================================
 
 doc:
-	@echo "If you have documentation to create, place the commands to"
-	@echo "build the docs in the 'doc:' target.  For example:"
-	@echo "        xml2nroff sample.xml > sample.n"
-	@echo "        xml2html sample.xml > sample.html"
+	echo "mangling names in tcl-syslog.n"
+	cat doc/tcl-syslog.n | sed -e 's/"tcl-syslog" "n"/"tcl-syslog" "3tcl"/g' > doc/tcl-syslog.3tcl
 
 install: all install-binaries install-libraries install-doc
 
@@ -239,11 +237,11 @@
 #========================================================================
 
 install-doc: doc
-	@$(INSTALL_DATA_DIR) "$(DESTDIR)$(mandir)/mann"
+	@$(INSTALL_DATA_DIR) "$(DESTDIR)$(mandir)/man3"
 	@echo "Installing documentation in $(DESTDIR)$(mandir)"
-	@list='$(srcdir)/doc/*.n'; for i in $$list; do \
+	@list='doc/*.3tcl'; for i in $$list; do \
 	    echo "Installing $$i"; \
-	    $(INSTALL_DATA) $$i "$(DESTDIR)$(mandir)/mann" ; \
+	    $(INSTALL_DATA) $$i "$(DESTDIR)$(mandir)/man3" ; \
 	done
 
 test: binaries libraries
