25.03.2016 10:59, Dmitry Yemanov wrote:
> I don't want to pollute our build scripts with "check whether git is
> installed and available in the path", "check whether sources contain
> .git inside", etc. But without that, we cannot enforce outside builders
> to generate the buildno properly. I don't care what code you build for
> yourself, but for non-official snapshot builds and Linux ports this
> becomes a problem. I don't want to scratch my head every time someone
> says "I'm using FB v3.4.5.0 and it crashes."
>
> If you have some clever idea, I'm all ears.

   If someone clone repo, it has git. In this case we can use post-checkout 
hook to 
generate version file. From this point on sources will have right build number 
even if 
copied anywhere.
   The only problem is the case when someone download sources as ZIP file from 
server. 
Actually, we could use the hook even in this case if Github had allowed 
server-side hooks. 
But it doesn't. Changing of the hoster is not an option?

-- 
   WBR, SD.

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to