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.
|