freebsd-nq/contrib/dma/get-version.sh

10 lines
137 B
Bash
Raw Normal View History

#!/bin/sh
gitver=$(git describe 2>/dev/null | tr - .)
filever=$(cat VERSION)
version=${gitver}
: ${version:=$filever}
echo "$version"