Revision c3a7a47c4aa055599fb59265893a46f5da13aeee authored by Christophe De Wagter on 10 October 2012, 20:45:17 UTC, committed by Christophe De Wagter on 10 October 2012, 20:45:17 UTC
1 parent 4861b93
Raw File
paparazzi_version
#!/bin/sh

DEF_VER=v4.1.0_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