u-boot/u-boot/tools/setlocalversion

14 lines
253 B
Plaintext
Raw Normal View History

2014-10-21 12:29:11 +00:00
#!/bin/sh
# Print additional version information for non-release trees.
usage() {
echo "Usage: $0 [srctree]" >&2
exit 1
}
cd "${1:-.}" || usage
if version=$(git describe --dirty --always --match="ar9331-v*" 2>/dev/null) ; then
echo "-$version"
2014-10-21 12:29:11 +00:00
fi