Merged On 3 May 2016 at 01:29, Ricardo Salveti <[email protected]> wrote:
> On Mon, May 2, 2016 at 6:07 PM, Anders Roxell <[email protected]> > wrote: > > Make it possible to match more digits than groups of one. > > > > Signed-off-by: Anders Roxell <[email protected]> > > --- > > scripts/git_hash.sh | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/scripts/git_hash.sh b/scripts/git_hash.sh > > index 6ba265e..336eb01 100755 > > --- a/scripts/git_hash.sh > > +++ b/scripts/git_hash.sh > > @@ -7,7 +7,8 @@ fi > > ROOTDIR=${1} > > > > if [ -d ${ROOTDIR}/.git ]; then > > - hash=$(git --git-dir=${ROOTDIR}/.git describe --match > 'v?\.?\.?\.?' | tr -d "\n") > > + hash=$(git --git-dir=${ROOTDIR}/.git describe --match > 'v[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*'\ > > + | tr -d "\n") > > if [[ $(git --git-dir=${ROOTDIR}/.git diff --shortstat 2> > /dev/null \ > > | tail -n1) != "" ]]; then > > dirty=.dirty > > -- > > 2.1.4 > > Reviewed-by: Ricardo Salveti <[email protected]> > > -- > Ricardo Salveti > -- Mike Holmes Technical Manager - Linaro Networking Group Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs "Work should be fun and collaborative, the rest follows"
_______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
