#!/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" fi