mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-29 19:17:28 +08:00
improve paparazzi_version if git tags are not found
This commit is contained in:
+7
-1
@@ -6,7 +6,13 @@ DEF_VER=v5.1_devel
|
|||||||
# then use default version from above (for release tarballs).
|
# then use default version from above (for release tarballs).
|
||||||
if test -d .git -o -f .git
|
if test -d .git -o -f .git
|
||||||
then
|
then
|
||||||
VN=$(git describe --match "v[0-9].[0-9]*" --dirty --always --long)
|
GIT_VN=$(git describe --match "v[0-9].[0-9]*" --dirty --always --long)
|
||||||
|
if echo "$GIT_VN" | grep -Eq "^v[0-9].[0-9]"
|
||||||
|
then
|
||||||
|
VN="$GIT_VN"
|
||||||
|
else
|
||||||
|
VN="$DEF_VER"-none-g"$GIT_VN"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
VN="$DEF_VER"
|
VN="$DEF_VER"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user