1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:04:44 -07:00

version.bash: strip changeset hash from 'hg tags' output

Fixes #1651.

R=rsc
CC=golang-dev
https://golang.org/cl/4300054
This commit is contained in:
Andrew Gerrand 2011-04-04 10:06:09 +10:00
parent fbeaa869f6
commit 0f46aaf8b3

View File

@ -18,6 +18,7 @@ fi
# Find most recent known release tag.
TAG=$(hg tags |
sed 's/:.*//' |
sort -rn -k2 |
awk -v ver=$VERSION '$2 <= ver && $1~/^(release|weekly)\./ {print $1}' |
sed -n 1p)