[PATCH] autogenerate include/version.h ...
Alexander Bokovoy
a.bokovoy at sam-solutions.net
Mon Aug 11 11:28:53 GMT 2003
On Mon, Aug 11, 2003 at 07:11:12AM -0400, Ken Cross wrote:
> 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)?
Very good point, Ken.
--
/ Alexander Bokovoy
More information about the samba-technical
mailing list