about summary refs log tree commit diff stats
path: root/buildver.sh
blob: 27dfd899973c62acd9e5bbdc87253b025077ad75 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh

CURDIR=$(dirname $0)
if [ -d "$CURDIR/.git" ]; then
	cd "$CURDIR"
	git describe --tags | tr -d '\n'
fi