[Mesa-dev] [PATCH v3] build: unify mesa version by using a VERSION file

Kenneth Graunke kenneth at whitecape.org
Thu Jul 25 22:38:14 PDT 2013


On 07/25/2013 03:45 PM, Emil Velikov wrote:
> Rather than having to keep track of all the build systems and their respecitve
> definition of the mesa version, use a single top file VERSION. Every build
> system is responsible for reading/parsing the file and using it
>
> v2:
> * remove useless bulletpoint from the documentation, suggested by Matt
> * "Androing is Linux. Use '/' in stead of '\'", spotted by Chad V
> * use cleaner code to get the version in scons, suggested by Chad V
>
> v3:
> * ensure leading and trailing whitespace characters are stripped while parsing
> * android: handle GNU shell commands approapriately
>
> Reviewed-by: Matt Turner <mattst88 at gmail.com>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>
> An interesting point while looking for ways to strip the newline character
> - python considers carrage return as whitespace whereas m4 does not.
> AFAICS no-one has used those nasty symbols in mesa, and I hope no-one will.
>
> Just to be on the safe side I have tested editing the VERSION file with a
> few different editors, adding multiple newlines at the end of the file.
> SCons and Automake worked fine, whereas for Android I'm short of the build
> system.
>
> Cheers
> Emil

Thanks Emil!  This looks good to me.  I'll give it a little time for 
Chad/Matt to comment if they have more thoughts, but hopefully it can 
land soon.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>


More information about the mesa-dev mailing list