mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: get version exclusively from version.h
This commit is contained in:
parent
ff46384258
commit
b07acea6b6
@ -112,7 +112,7 @@ addfwversion() {
|
||||
git log -1 > "$destdir/git-version.txt"
|
||||
[ -f APM_Config.h ] && {
|
||||
shopt -s nullglob
|
||||
version=$(grep 'define.THISFIRMWARE' *.pde *.h 2> /dev/null | cut -d'"' -f2)
|
||||
version=$(grep 'define.THISFIRMWARE' version.h 2> /dev/null | cut -d'"' -f2)
|
||||
echo >> "$destdir/git-version.txt"
|
||||
echo "APMVERSION: $version" >> "$destdir/git-version.txt"
|
||||
python $BASEDIR/Tools/PrintVersion.py >"$destdir/firmware-version.txt"
|
||||
|
@ -73,7 +73,7 @@ build_devrelease() {
|
||||
git log -1 > "$SUBDIR/git-version.txt" || return 1
|
||||
[ -f APM_Config.h ] && {
|
||||
shopt -s nullglob
|
||||
version=$(grep 'define.THISFIRMWARE' *.pde *.h 2> /dev/null | cut -d'"' -f2)
|
||||
version=$(grep 'define.THISFIRMWARE' version.h 2> /dev/null | cut -d'"' -f2)
|
||||
echo >> "$SUBDIR/git-version.txt"
|
||||
echo "APMVERSION: $version" >> "$SUBDIR/git-version.txt"
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ addfwversion() {
|
||||
git log -1 > "$destdir/git-version.txt"
|
||||
[ -f APM_Config.h ] && {
|
||||
shopt -s nullglob
|
||||
version=$(grep 'define.THISFIRMWARE' *.pde *.h 2> /dev/null | cut -d'"' -f2)
|
||||
version=$(grep 'define.THISFIRMWARE' version.h 2> /dev/null | cut -d'"' -f2)
|
||||
echo >> "$destdir/git-version.txt"
|
||||
echo "APMVERSION: $version" >> "$destdir/git-version.txt"
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ addfwversion() {
|
||||
git log -1 > "$destdir/git-version.txt"
|
||||
[ -f APM_Config.h ] && {
|
||||
shopt -s nullglob
|
||||
version=$(grep 'define.THISFIRMWARE' *.pde *.h 2> /dev/null | cut -d'"' -f2)
|
||||
version=$(grep 'define.THISFIRMWARE' version.h 2> /dev/null | cut -d'"' -f2)
|
||||
echo >> "$destdir/git-version.txt"
|
||||
echo "APMVERSION: $version" >> "$destdir/git-version.txt"
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ addfwversion() {
|
||||
git log -1 > "$destdir/git-version.txt"
|
||||
[ -f APM_Config.h ] && {
|
||||
shopt -s nullglob
|
||||
version=$(grep 'define.THISFIRMWARE' *.pde *.h 2> /dev/null | cut -d'"' -f2)
|
||||
version=$(grep 'define.THISFIRMWARE' version.h 2> /dev/null | cut -d'"' -f2)
|
||||
echo >> "$destdir/git-version.txt"
|
||||
echo "APMVERSION: $version" >> "$destdir/git-version.txt"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user