Revision 8bfccd461299271adb9db338825ed3674dbec999 authored by Gautier Hattenberger on 24 July 2012, 14:39:11 UTC, committed by Gautier Hattenberger on 24 July 2012, 14:39:11 UTC
1 parent eb9b5fe
Raw File
paparazzi_version
#!/bin/sh

DEF_VER=v3.9.2_testing

# 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
back to top