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

Emil Velikov emil.l.velikov at gmail.com
Thu Jul 25 14:11:45 PDT 2013


On 25/07/13 21:28, Kenneth Graunke wrote:
> On 07/25/2013 12:39 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
>>
>> Reviewed-by: Matt Turner <mattst88 at gmail.com>
>> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
>> ---
>>
>> Thanks for the tips and review guys.
>> Feel free to commit if it's ok now - lacking the access rights :\
>>
>> Cheers
>> Emil
> 
> I like the idea of this patch, but there's one problem: autogen.sh dies
> with a really cryptic error if the VERSION file ends with a newline.  My
> editor, at least, seems to want to append that automatically, so I
> assume others will run into that problem as well.
> 
> We could work around this by always doing:
> $ echo -n '9.3.0-devel' > VERSION
> 
> but...I wonder if there's some way to make this more robust without
> complicating the code too badly.
> 
Ouch nice point. I will see what I can do

Cheers
Emil
> --Ken



More information about the mesa-dev mailing list