Em 25/03/2016 16:24, Dmitry Yemanov escreveu:
> 25.03.2016 22:19, Michal Kubecek wrote:
>
>> timestamp='$Format:%ct$'
>> if [ "${timestamp:0:1}" = '$' ]; then
>> ts=`git log -1 --pretty='%ct'`
>> fi
>> build_num=$[timestamp / 86400 - 16811]
>
Now I understood what Michal mean and is the same as me. :)
> This gives us a buildno counted in days, not in commits (as now).
>
In practive it's not different.
Doesn't the script is running per day like was in svn?
Right, that means the snapshot build has a "perfect" buildno, but the
people who download zip does not.
With the solution above, we can make snapshot builds to checkout tree or
00:00 hour of the given date, so it can have a perfect buildno that we
can convert to date as well.
Adriano
------------------------------------------------------------------------------
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