Get the iperf version number from autoconf, don't track the tagging date.

These simplify the release process because they eliminate a manual
file-editing step.
This commit is contained in:
Bruce A. Mah 2014-04-24 10:23:31 -07:00
parent c5c3d86ca8
commit d141c52dab
3 changed files with 3 additions and 4 deletions

View File

@ -89,4 +89,4 @@ AC_CHECK_FUNCS([cpuset_setaffinity sched_setaffinity],
# it needs and what arguments it expects.
AC_CHECK_FUNCS([sendfile])
AC_OUTPUT([Makefile src/Makefile examples/Makefile])
AC_OUTPUT([Makefile src/Makefile src/version.h examples/Makefile])

View File

@ -139,7 +139,7 @@ const char usage_longstr[] = "Usage: iperf [-s|-c host] [options]\n"
"-y, --reportstyle C report as a Comma-Separated Values\n"
#endif
const char version[] = PACKAGE_STRING " (" IPERF_VERSION_DATE ")";
const char version[] = PACKAGE_STRING;
/* -------------------------------------------------------------------
* settings

View File

@ -7,5 +7,4 @@
* for complete information.
*/
#define IPERF_VERSION "3.0.1"
#define IPERF_VERSION_DATE "10 January 2014"
#define IPERF_VERSION "@PACKAGE_VERSION@"