Tools: build_binaries: fix check for wrong file

We get the version from version.h not APM_Config.h.
This commit is contained in:
Lucas De Marchi 2016-08-11 23:23:46 -03:00
parent dbdd86ad46
commit cd333cb43a

View File

@ -151,7 +151,7 @@ skip_build() {
addfwversion() {
destdir="$1"
git log -1 > "$destdir/git-version.txt"
[ -f APM_Config.h ] && {
[ -f "version.h" ] && {
shopt -s nullglob
version=$(grep 'define.THISFIRMWARE' version.h 2> /dev/null | cut -d'"' -f2)
echo >> "$destdir/git-version.txt"