File: doc-fix-manpage-variables.patch

package info (click to toggle)
toilet 0.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,624 kB
  • sloc: ansic: 1,006; sh: 161; makefile: 71
file content (33 lines) | stat: -rw-r--r-- 1,197 bytes parent folder | download
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
Forwarded: not-needed
Last-Update: 2025-08-30
Author: Kirill Rekhov <krekhov.dev@gmail.com>
Description: Fix manpage variables
 Expand @PACKAGE_VERSION@ during manpage generation so toilet(1) shows the
 actual version (alongside existing @datarootdir@ substitution).

--- toilet-0.3.orig/doc/Makefile.am
+++ toilet-0.3/doc/Makefile.am
@@ -5,5 +5,7 @@ CLEANFILES = toilet.1
 man_MANS = toilet.1
 
 toilet.1: toilet.1.in
-	sed -e "s,[@]datarootdir@,$(datarootdir),g" $(srcdir)/$^ > $@
+	sed -e "s,[@]datarootdir@,$(datarootdir),g" \
+	    -e "s,[@]PACKAGE_VERSION@,$(PACKAGE_VERSION),g" \
+	    $(srcdir)/$^ > $@
 
--- toilet-0.3.orig/doc/Makefile.in
+++ toilet-0.3/doc/Makefile.in
@@ -422,9 +422,10 @@ uninstall-man: uninstall-man1
 	mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
 	uninstall-am uninstall-man uninstall-man1
 
-
 toilet.1: toilet.1.in
-	sed -e "s,[@]datarootdir@,$(datarootdir),g" $(srcdir)/$^ > $@
+	sed -e "s,[@]datarootdir@,$(datarootdir),g" \
+	    -e "s,[@]PACKAGE_VERSION@,$(PACKAGE_VERSION),g" \
+	    $(srcdir)/$^ > $@
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.