cloud/docker/release: go generate augie.upspin.io/vendor/upspin.io/version

Run "go generate" on the version package vendored in the augie repo,
as well as the one for the core upspin repo.

Change-Id: Ie3b3d6c517092f521607f3b92d93aca423d15850
Reviewed-on: https://upspin-review.googlesource.com/14981
Reviewed-by: Rob Pike <r@golang.org>
diff --git a/cloud/docker/release/makerelease.sh b/cloud/docker/release/makerelease.sh
index 35bce97..9ba1fc8 100755
--- a/cloud/docker/release/makerelease.sh
+++ b/cloud/docker/release/makerelease.sh
@@ -58,14 +58,15 @@
 	GOPATH="$EXT_GOPATH" go generate augie.upspin.io/cmd/upspin-ui/static
 esac
 
-# Generate the version strings for the commands.
-if [[ "$repo" != "upspin.io" ]]; then
+if [[ "$repo" == "upspin.io" ]]; then
+	# Generate the version strings for the Upspin core commands.
+	GOPATH="$EXT_GOPATH" go generate -run make_version ${repo}/version
+else
+	# Generate the version strings for the commands in this repo.
+	GOPATH="$EXT_GOPATH" go generate -run make_version ${repo}/vendor/upspin.io/version
+	# Build the upspin tool, used to copy the files to release@upspin.io. (Skip
+	# this if we're operating on the core repo; we'll build it in the next step.)
 	GOPATH="$EXT_GOPATH" go get -d upspin.io/cmd/upspin
-fi
-GOPATH="$EXT_GOPATH" go generate -run make_version upspin.io/version
-
-# Build the upspin tool, used to copy the files to release@upspin.io.
-if [[ "$repo" != "upspin.io" ]]; then
 	TARGETS="linux/amd64" $BUILD upspin.io/cmd/upspin
 fi