From b55bfd4ce65915eed82ada1c74e7cc5dcefa3405 Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 19 May 2005 23:21:51 +0000 Subject: [PATCH] added propper numeric version number to version git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@585 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/Makefile.am | 2 +- src/rrd_tool.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 9ac851f..0bbac1a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,7 +11,7 @@ fonts_DATA = DejaVuSansMono-Roman.ttf #INCLUDES = $(CGI_INCLUDES) $(FREETYPE_INCLUDES) $(ART_INCLUDES) \ # $(PNG_INCLUDES) $(ZLIB_INCLUDES) RRD_DEFAULT_FONT=@RRD_DEFAULT_FONT@ -AM_CPPFLAGS = -DRRD_DEFAULT_FONT=\"$(RRD_DEFAULT_FONT)\" +AM_CPPFLAGS = -DRRD_DEFAULT_FONT=\"$(RRD_DEFAULT_FONT)\" -DNUMVERS=@NUMVERS@ RRD_C_FILES = \ getopt.c \ diff --git a/src/rrd_tool.c b/src/rrd_tool.c index 810e4b7..a5a4e00 100644 --- a/src/rrd_tool.c +++ b/src/rrd_tool.c @@ -552,8 +552,8 @@ int HandleInputLine(int argc, char **argv, FILE* out) strcmp("v", argv[1]) == 0 || strcmp("-v", argv[1]) == 0 || strcmp("-version", argv[1]) == 0 ) - printf("RRDtool " PACKAGE_VERSION " Copyright by Tobi Oetiker, 1997-2005 (v.%lu)\n", - rrd_version(0, NULL)); + printf("RRDtool " PACKAGE_VERSION " Copyright by Tobi Oetiker, 1997-2005 (%f)\n", + rrd_version()); else if (strcmp("restore", argv[1]) == 0) rrd_restore(argc-1, &argv[1]); else if (strcmp("resize", argv[1]) == 0) -- 2.11.0