sed version number to current commit if no tag describe exists

Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
Jan-Tarek Butt 2016-09-24 15:28:27 +02:00 committed by Tim Niemeyer
parent 03e3104273
commit f9f590d3d6
1 changed files with 3 additions and 0 deletions

View File

@ -190,6 +190,9 @@ prebuild() {
#insert actual firware version informations into release file
version=$(git describe --tags --dirty)
if [ 0 -ne $? ]; then
version=$(git log -1 --pretty=format:%h)
fi
community=$(basename "$(realpath selected_community)" .cfg)
{