mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
15 lines
279 B
Bash
Executable File
15 lines
279 B
Bash
Executable File
#!/bin/sh
|
|
|
|
DEF_VER=v4.9_devel
|
|
|
|
# First try git describe (if running on a git repo),
|
|
# then use default version from above (for release tarballs).
|
|
if test -d .git -o -f .git
|
|
then
|
|
VN=$(git describe --match "v[0-9].[0-9]*" --dirty --always --long)
|
|
else
|
|
VN="$DEF_VER"
|
|
fi
|
|
|
|
echo $VN
|