From: Gustavo Niemeyer Date: Thu, 25 Aug 2011 01:10:25 +0000 (-0300) Subject: version.bash: update VERSION on -save if already present X-Git-Tag: weekly.2011-09-01~91 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=15580526de5419ae988f86cb807967f740b36f3d;p=gostls13.git version.bash: update VERSION on -save if already present R=rsc CC=golang-dev https://golang.org/cl/4941047 --- diff --git a/src/version.bash b/src/version.bash index fc899e2e3e..792814bac7 100755 --- a/src/version.bash +++ b/src/version.bash @@ -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