[PATCH] autogenerate include/version.h ...

Ken Cross kcross at nssolutions.com
Mon Aug 11 11:11:12 GMT 2003


metze:

Maybe I'm all alone in this, but...

If I understand it, the only way to modify the version in your new scheme is
to manually modify the VERSION file.  I currently use cvs to automatically
update my version numbers (very handy).  I currently use:

  #define VERSION build_version_string()

where build_version_string() is a simple function I wrote to extract the
version from a cvs string like:

  #define CVS_REVISION "$Revision: 1.21 $"

The function just extracts "1.21" from the string and adds it to the
version:

  smbd -V
  Version 3.0.0rc1-1.21

Will --with-samba-version='build_version_string()' work?  

If not, is there a way to let the VENDOR_SUFFIX be a function (as opposed to
a static #define)?

Ken
________________________________

Ken Cross

Network Storage Solutions
Phone 865.675.4070 ext 31
kcross at nssolutions.com 

> -----Original Message-----
> From: 
> samba-technical-bounces+kcross=nssolutions.com at lists.samba.org
>  
> [mailto:samba-technical-bounces+kcross=nssolutions.com at lists.s
> amba.org] On Behalf Of Stefan (metze) Metzmacher
> Sent: Sunday, August 10, 2003 8:17 PM
> To: Gerald (Jerry) Carter; Jelmer Vernooij
> Cc: samba-technical at lists.samba.org
> Subject: [PATCH] autogenerate include/version.h ...
> 
> 
> Hi Jerry,Jelmer,
> 
> here's the patch for autogenerating include/version.h
> 
> "include/version.h" is created by "script/mkversion.sh"
> from the data in "source/VERSION"
> 
> script/mkversion.sh is called by autogen.sh
> 
> this will be the current include/version.h:
> ------
> /* Autogenerated by script/mkversion.sh */
> #define SAMBA_VERSION_MAJOR 3
> #define SAMBA_VERSION_MINOR 0
> #define SAMBA_VERSION_RELEASE 0
> #define SAMBA_VERSION_RC_RELEASE 1
> #define SAMBA_VERSION_IS_CVS_SNAPSHOT 1
> #define SAMBA_VERSION_STRING "3.0.0rc1cvs"
> ------
> 
> This will make it easier for module writters to deal with 
> different samba 
> versions
> in the future...
> 
> I'll send the modules part of this on topic "[PATCH] updates 
> for example/VFS"
> 
> 
> 
> metze
> --------------------------------------------------------------
> ---------------
> Stefan "metze" Metzmacher <metze at metzemix.de> 
> 
> 




More information about the samba-technical mailing list