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.tokkee.org/?a=commitdiff_plain;h=0393e82fa044369d78eddaa54d6ac88ac17234af;p=rrdtool-all.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@579 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/configure.ac b/program/configure.ac index 763cf365..f45a85bd 100644 --- a/program/configure.ac +++ b/program/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/program/src/Makefile.am b/program/src/Makefile.am index 14dd3bcb..9ac851f7 100644 --- a/program/src/Makefile.am +++ b/program/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/program/src/rrd.h b/program/src/rrd.h index 86206088..8feaeb1a 100644 --- a/program/src/rrd.h +++ b/program/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/program/src/rrd_gfx.c b/program/src/rrd_gfx.c index 56f4a98a..eaee87f6 100644 --- a/program/src/rrd_gfx.c +++ b/program/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" "