[Tfug] How do I get automake to set build number?

ken at greenideas.net ken at greenideas.net
Tue Apr 17 14:28:25 MST 2007


I don't use KDevelop but I set the Version number string in
configure.in.

AM_INIT_AUTOMAKE(program_name. 1._some_number)

But I am not sure how KDevelop sets the number.

Ken

On Tue, Apr 17, 2007 at 02:06:47PM -0700, Joe Blais wrote:
> Hello -
> 
> I've been using KDevelop with the GNU automake stuff.
> 
> I would really like to get a build number into a version string.
> 
> Besides not knowing how to get it to update a version string, I don't even
> know where it's keeping the data for the version string. I just haven't
> gotten that deep into the automagic I guess.
> 
> I could put a line into the makefile, but automake remakes that.
> 
> I visual studio, I made an app that would parse a version.h file that I had
> for every project, and increment the build number.  In versio.h I had
> several defines for the various version string fields that winders liked to
> have:
> 
> #ifndef VERSION_H
> #define VERSION_H
> 
> #define FILE_VERSION   1, 1, 0, 31
> #define PROD_VERSION   1, 1, 0, 31
> #define FILE_VER_STR   "1, 1, 0, 31"
> #define PROD_VER_STR   "1, 1, 0, 31"
> 
> #endif
> 
> 
> I was able to set pre-build events in a project.  The event would call my
> utility, something like:  incbuild version.h
> Every build then had a unique version string, and when frantically figuring
> out what version of code was being tested and running on what machine, it
> really saved me, if I saved the code.
> 
> Linux seems to mess with file dates differently than winders, unless I need
> to look at a different date of a file so I can track it.  It seems modified
> and accessed are for the specific copy of a file, not the original one.
> 
> Anyway --
> 
> Does anyone out there have a good method of identifying the specific build
> of an application?
> 
> Thanks
> 
> Joe
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org




More information about the tfug mailing list