1
0
mirror of https://github.com/golang/go synced 2024-11-25 03:07:56 -07:00

build: handle broken awk in version.bash

R=adg, rsc, ality
CC=golang-dev
https://golang.org/cl/4281069
This commit is contained in:
Dave Cheney 2011-03-25 18:00:19 -04:00 committed by Russ Cox
parent d406f8f650
commit d165dc6036

View File

@ -19,7 +19,7 @@ fi
# Find most recent known release tag.
TAG=$(hg tags |
sort -rn -k2 |
awk -vver=$VERSION '$2 <= ver && $1~/^(release|weekly)\./ {print $1}' |
awk -v ver=$VERSION '$2 <= ver && $1~/^(release|weekly)\./ {print $1}' |
sed -n 1p)
if [ "$TAG" != "" ]; then