]> Cypherpunks repositories - gostls13.git/commitdiff
build: don't print anything on version.bash -save
authorGustavo Niemeyer <gustavo@niemeyer.net>
Mon, 15 Aug 2011 17:25:54 +0000 (14:25 -0300)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Mon, 15 Aug 2011 17:25:54 +0000 (14:25 -0300)
R=rsc
CC=golang-dev
https://golang.org/cl/4904044

src/version.bash

index 21cfb82095a654c4522f2e6d9d29fb2cc1a4cbad..fc899e2e3e44ac2a2cc1f2a8a034ff81df17cf17 100755 (executable)
@@ -3,7 +3,7 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
-GOROOT=$(cd `dirname $0`/..; pwd)
+GOROOT=$(dirname $0)/..
 
 # If a version file created by -save is available, use it
 if [ -f "$GOROOT/VERSION" ]; then
@@ -45,7 +45,6 @@ fi
 
 if [ "$1" = "-save" ]; then
        echo $VERSION > $GOROOT/VERSION
-       echo "Saved '$VERSION' to $GOROOT/VERSION" 1>&2
 else
        echo $VERSION
 fi