List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:July 30 2005 9:50am
Subject:Re: mysqlpp 2.0beta
View as plain text  
On Thu, Jul 21, 2005 at 09:09:00PM -0600, Warren Young wrote:
> >I should automate this for you, since I suggested it. :-)
> Your mission, should you choose to accept it, Mr. Frey, is to find out 
> if the version string from is available as a variable that 
> autoconf can substitute into and files.

Well, it's possible.  I haven't figured out an easy way to consolidate the
3 version formats into a single spot, but at least all version numbers are
in one file:  And they are in 3 lines close to each other,
so pretty easy to update, and hard to miss.

The only version numbers that have to be updated manually besides
are in the history files:  Changelog, and the history log stuff in mysql++.spec.
The version at the top of mysql++.spec is handled automatically.

I haven't committed this to svn yet, since it has some file renames, etc,
and might as well let people protest first. :-)

Here's the patch.
- Chris

---	(revision 994)
+++	(working copy)
@@ -15,8 +15,15 @@
 dnl Standard autotools stuff
-AM_INIT_AUTOMAKE(mysql++, 2.0.0) # Bump in mysql++.spec & lib/, too!
+dnl Version bumping: don't forget:
+dnl       Changelog
+dnl       History in mysql++.spec
+AC_INIT(mysql++, 2.0.0, plusplus@stripped)
@@ -85,6 +92,6 @@
 # Done with checks!
-AC_OUTPUT(Makefile lib/Makefile examples/Makefile)
+AC_OUTPUT([Makefile mysql++.spec lib/mysql++.h lib/Makefile lib/Doxyfile
 ./ simple gcc
---	(revision 994)
+++	(working copy)
@@ -1,6 +1,6 @@
 Summary: C++ wrapper for the MySQL C API
-Name: mysql++
-Version: 2.0.0
 Release: beta2
 Copyright: LGPL
 Group: Development/Databases
Index: lib/
--- lib/	(revision 994)
+++ lib/	(working copy)
@@ -40,6 +40,8 @@
 #if !defined(MYSQLPP_MYSQLPP_H)
 // This #include order gives the fewest redundancies in the #include
 // dependency chain.
 #include "connection.h"
Index: lib/
--- lib/	(revision 994)
+++ lib/	(working copy)
@@ -23,7 +23,7 @@
 # This could be handy for archiving the generated documentation or 
 # if some version control system is used.
-PROJECT_NUMBER         = 2.0
 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) 
 # base path where the generated documentation will be put. 
Index: lib/
--- lib/	(revision 994)
+++ lib/	(working copy)
@@ -26,7 +26,7 @@
 # interfaces supported.  Bump the last only if explicit backwards-
 # compatibility is added -- like two different versions of a single 
 # function.  'age' must be less than the current interface version.
-libmysqlpp_la_LDFLAGS=-version-info 2:0:0
+libmysqlpp_la_LDFLAGS=-version-info @PACKAGE_LIB_VERSION@
 libmysqlpp_la_SOURCES = \
 	coldata.cpp connection.cpp datetime.cpp fields.cpp field_names.cpp \

mysqlpp 2.0betaJ Robinson18 Jul
  • Re: mysqlpp 2.0betaWarren Young18 Jul
  • Re: mysqlpp 2.0betaChris Frey21 Jul
    • Re: mysqlpp 2.0betaWarren Young22 Jul
      • Re: mysqlpp 2.0betaChris Frey22 Jul
        • Re: mysqlpp 2.0betaWarren Young22 Jul
          • Re: mysqlpp 2.0betaChris Frey30 Jul
            • Re: mysqlpp 2.0betaChris Frey30 Jul
            • Re: mysqlpp 2.0betaWarren Young1 Aug