autotest: buildand retain version files

This commit is contained in:
Peter Barker 2016-03-19 15:14:13 +11:00 committed by Andrew Tridgell
parent e135659165
commit 39ab0e5b7d
1 changed files with 3 additions and 0 deletions

View File

@ -115,6 +115,9 @@ addfwversion() {
version=$(grep 'define.THISFIRMWARE' *.pde *.h 2> /dev/null | cut -d'"' -f2)
echo >> "$destdir/git-version.txt"
echo "APMVERSION: $version" >> "$destdir/git-version.txt"
echo "PWD"
`pwd`
python $BASEDIR/Tools/PrintVersion.py >"$destdir/firmware-version.txt"
}
}