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
|
|
|
|
|
2015-07-19 19:45:17 +00:00
|
|
|
if version=$(git describe --dirty --always --match="ar9331-v*" 2>/dev/null) ; then
|
|
|
|
echo "-$version"
|
2014-10-21 12:29:11 +00:00
|
|
|
fi
|