From: oetiker Date: Wed, 18 May 2005 19:41:08 +0000 (+0000) Subject: cleaned up version number code and added new function rrd_version -- partly by Burton... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9a47d693d60f953fc07119670781c92fde560be0;p=rrdtool.git cleaned up version number code and added new function rrd_version -- partly by Burton Strauss git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@579 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/configure.ac b/configure.ac index 763cf36..f45a85b 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,16 @@ dnl dnl Inspiration from http://autoconf-archive.cryp.to dnl tell automake the this script is for rrdtool +dnl the official version number is +dnl a.b.c AC_INIT([rrdtool],[1.2.8]) +dnl for testing a numberical version number comes handy +dnl the released version are +dnl a.bccc +dnl the devl versions will be something like +dnl a.b999yymmddhh +NUMVERS=1.2008 +AC_SUBST(NUMVERS) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE AC_CONFIG_HEADERS([config.h]) diff --git a/src/Makefile.am b/src/Makefile.am index 14dd3bc..9ac851f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -37,6 +37,7 @@ RRD_C_FILES = \ rrd_rpncalc.c \ rrd_tune.c \ rrd_update.c \ + rrd_version.c \ rrd_xport.c \ rrd_nan_inf.c \ art_rgba_svp.c \ diff --git a/src/rrd.h b/src/rrd.h index 8620608..8feaeb1 100644 --- a/src/rrd.h +++ b/src/rrd.h @@ -72,6 +72,7 @@ int rrd_tune(int, char **); time_t rrd_last(int, char **); time_t rrd_first(int, char **); int rrd_resize(int, char **); +unsigned long rrd_version(int, char **); int rrd_xport(int, char **, int *, time_t *, time_t *, unsigned long *, unsigned long *, char ***, rrd_value_t **); diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c index 56f4a98..eaee87f 100644 --- a/src/rrd_gfx.c +++ b/src/rrd_gfx.c @@ -1399,7 +1399,7 @@ int gfx_render_svg (gfx_canvas_t *canvas, " \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd\">\n" "