version.sh: Print versions based on the last git tag for release branches
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 28 Jul 2014 00:40:35 +0000 (02:40 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 30 Aug 2014 19:44:59 +0000 (21:44 +0200)
commit3ed4dc92284cfa1ce06e5af4458fdd374b3ca43d
tree82d5965e4c70d713504eea19da0268685d5f6a6d
parent4ede955d864d6d8163abdf490f8af6cc49154e38
version.sh: Print versions based on the last git tag for release branches

release branches are detected by checking if "git" is not in RELEASE
This changes "N-64706-g2f71aeb" to "n2.3-8-g2f71aeb"
for git master theres no change

This should improve the readability of lists of versions which come from
more than 1 release branch or master + release. fate.ffmpeg.org is
one possible example

Reviewed-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ee606fd0317df202b59946cf9b738c0a01056316)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 1f4d779e87050111f831f24645580f04e0b1917b)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 0a64e9a0299b8ded2508be4c6f4949f8f8f57724)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
version.sh