Revision f56aa8a6919ad0fdd6292142492c36ba2e5e9b77 authored by Felix Ruess on 02 July 2013, 09:51:33 UTC, committed by Felix Ruess on 02 July 2013, 11:18:12 UTC
1 parent 5dac597
Raw File
paparazzi_version
#!/bin/sh

DEF_VER=v5.0.0_stable

# 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