https://github.com/tudelft/paparazzi
Raw File
Tip revision: 353bd38c5b78a52cb41ce73e0b54d6ebe5cc18d3 authored by Felix Ruess on 12 July 2012, 15:23:36 UTC
updated and renamed version script: ./paparazzi_version
Tip revision: 353bd38
paparazzi_version
#!/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
back to top