mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
updated and renamed version script: ./paparazzi_version
will now also print a default version set in this script if using a tarball (no git repo)
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
git describe --match "v[0-9].[0-9]*" --dirty --always
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
DEF_VER=v4.1_unstable
|
||||
|
||||
# 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
|
||||
Reference in New Issue
Block a user