Skip to content

Commit 330c331

Browse files
committed
Generate the man page during the dist hook
and not at build time. This makes life easy for parallel and cross compiled builds.
1 parent d28bcdf commit 330c331

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11

2+
Changes with v1.0.6
3+
4+
*) Generate the man page during the dist hook, and not
5+
at build time. This makes life easy for parallel and
6+
cross compiled builds. [Graham Leggett]
7+
28
Changes with v1.0.5
39

410
*) End getopt parsing on first non-option argument.

Makefile.am

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ retry_SOURCES = retry.c
77
EXTRA_DIST = retry.spec
88
dist_man_MANS = retry.1
99

10-
retry.1: retry.c $(top_srcdir)/configure.ac
11-
which txt2man && ./retry --help | txt2man -d 1 -t "${PACKAGE_NAME}" -r "${PACKAGE_NAME}-${PACKAGE_VERSION}" > retry.1 || true
10+
dist-hook: retry.1
11+
install retry.1 $(distdir)/retry.1
12+
13+
retry.1: retry
14+
./retry --help | txt2man -d 1 -t "${PACKAGE_NAME}" -r "${PACKAGE_NAME}-${PACKAGE_VERSION}" > retry.1
1215

config.h.in

+7-5
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
to 0 otherwise. */
1414
#undef HAVE_MALLOC
1515

16-
/* Define to 1 if you have the <memory.h> header file. */
17-
#undef HAVE_MEMORY_H
18-
1916
/* Define to 1 if stdbool.h conforms to C99. */
2017
#undef HAVE_STDBOOL_H
2118

2219
/* Define to 1 if you have the <stdint.h> header file. */
2320
#undef HAVE_STDINT_H
2421

22+
/* Define to 1 if you have the <stdio.h> header file. */
23+
#undef HAVE_STDIO_H
24+
2525
/* Define to 1 if you have the <stdlib.h> header file. */
2626
#undef HAVE_STDLIB_H
2727

@@ -67,7 +67,9 @@
6767
/* Define to the version of this package. */
6868
#undef PACKAGE_VERSION
6969

70-
/* Define to 1 if you have the ANSI C header files. */
70+
/* Define to 1 if all of the C90 standard headers exist (not just the ones
71+
required in a freestanding environment). This macro is provided for
72+
backward compatibility; new code need not use it. */
7173
#undef STDC_HEADERS
7274

7375
/* Version number of package */
@@ -87,7 +89,7 @@
8789
/* Define to rpl_malloc if the replacement function should be used. */
8890
#undef malloc
8991

90-
/* Define to `int' if <sys/types.h> does not define. */
92+
/* Define as a signed integer type capable of holding a process identifier. */
9193
#undef pid_t
9294

9395
/* Define to `unsigned int' if <sys/types.h> does not define. */

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Process this file with autoconf to produce a configure script.
33

44
AC_PREREQ(2.61)
5-
AC_INIT(retry, 1.0.5, minfrin@sharp.fm)
5+
AC_INIT(retry, 1.0.6, minfrin@sharp.fm)
66
AC_CONFIG_AUX_DIR(build-aux)
77
AC_CONFIG_MACRO_DIRS([m4])
88
AM_INIT_AUTOMAKE([dist-bzip2])

0 commit comments

Comments
 (0)