1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
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
@@ -207,10 +207,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 $(srcdir)/doc/tcl-syslog.n | sed -e 's/"tcl-syslog" "n"/"tcl-syslog" "3tcl"/g' > $(srcdir)/doc/tcl-syslog.3tcl
install: all install-binaries install-libraries install-doc
@@ -222,12 +220,6 @@
#========================================================================
install-libraries: libraries
- @$(INSTALL_DATA_DIR) "$(DESTDIR)$(includedir)"
- @echo "Installing header files in $(DESTDIR)$(includedir)"
- @list='$(PKG_HEADERS)'; for i in $$list; do \
- echo "Installing $(srcdir)/$$i" ; \
- $(INSTALL_DATA) $(srcdir)/$$i "$(DESTDIR)$(includedir)" ; \
- done;
#========================================================================
# Install documentation. Unix manpages should go in the $(mandir)
@@ -235,11 +227,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='$(srcdir)/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
|