]> Cypherpunks repositories - gostls13.git/commitdiff
version.bash: update VERSION on -save if already present
authorGustavo Niemeyer <gustavo@niemeyer.net>
Thu, 25 Aug 2011 01:10:25 +0000 (22:10 -0300)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Thu, 25 Aug 2011 01:10:25 +0000 (22:10 -0300)
R=rsc
CC=golang-dev
https://golang.org/cl/4941047

src/version.bash

index fc899e2e3e44ac2a2cc1f2a8a034ff81df17cf17..792814bac7bae48582fe7559a44499612e6bc126 100755 (executable)
@@ -6,7 +6,7 @@
 GOROOT=$(dirname $0)/..
 
 # If a version file created by -save is available, use it
-if [ -f "$GOROOT/VERSION" ]; then
+if [ -f "$GOROOT/VERSION" -a "$1" != "-save" ]; then
        cat $GOROOT/VERSION
        exit 0
 fi