Skip to content

Commit 098d13b

Browse files
author
Marcus Müller
committed
man page: generate in build step, not manually
Not a great idea to have to adjust release numbers in multiple files. Signed-off-by: Marcus Müller <[email protected]>
1 parent 1c27656 commit 098d13b

File tree

4 files changed

+11
-176
lines changed

4 files changed

+11
-176
lines changed

Makefile.am

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,13 @@ distclean-local:
88
rm -rf autom4te.cache
99
rm -f aclocal.m4 compile config.* configure depcomp INSTALL install-sh \
1010
Makefile.in missing src/Makefile.in test-driver test/Makefile.in
11+
12+
man/stress.1: man/stress.txt
13+
txt2man -t stress \
14+
-r stress-@PACKAGE_VERSION@ \
15+
-d "@RELEASE_DAY@" \
16+
-s 1 \
17+
-v "tool to impose load on and stress test systems" \
18+
$< > $@
19+
20+
.PHONY: distclean-local

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
AC_PREREQ([2.69])
22
AC_INIT([stress], [1.0.7], [https://github.com/resurrecting-open-source-projects/stress/issues])
3+
AC_SUBST([RELEASE_DAY], ["21 Jan 2023"], [Day of release (used in man page)])
34
AC_CONFIG_SRCDIR([src/stress.c])
45
AC_CONFIG_HEADERS([config.h])
56
AM_INIT_AUTOMAKE

man/create-man.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

man/stress.1

Lines changed: 0 additions & 152 deletions
This file was deleted.

0 commit comments

Comments
 (0)