]> Cypherpunks repositories - gostls13.git/commitdiff
build: don't require hg for build
authorAndrew Gerrand <adg@golang.org>
Mon, 15 Aug 2011 11:19:07 +0000 (21:19 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 15 Aug 2011 11:19:07 +0000 (21:19 +1000)
R=golang-dev, dsymonds, n13m3y3r
CC=golang-dev
https://golang.org/cl/4873048

src/version.bash

index ce5a9969a2e2a71932878ef6cebfa1367603efa2..e3677a736823775f556baf37e1cf4b8e4fcdead9 100755 (executable)
@@ -5,8 +5,9 @@
 
 # Check that we can use 'hg'
 if ! hg version > /dev/null 2>&1; then
-       echo 'hg not installed' 1>&2
-       exit 2
+       echo 'unable to report version: hg not installed' 1>&2
+       echo 'unknown'
+       exit 0
 fi
 
 # Get numerical revision