1
0
mirror of https://github.com/golang/go synced 2024-11-25 05:07:56 -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. # Find most recent known release tag.
TAG=$(hg tags | TAG=$(hg tags |
sed 's/:.*//' |
sort -rn -k2 | sort -rn -k2 |
awk -v ver=$VERSION '$2 <= ver && $1~/^(release|weekly)\./ {print $1}' | awk -v ver=$VERSION '$2 <= ver && $1~/^(release|weekly)\./ {print $1}' |
sed -n 1p) sed -n 1p)