cloud/docker/release: update release script to generate version strings

Untested.

Fixes upspin/upspin#422.

Change-Id: Iea976d69647b9d3fb2bd44f4ba2e9c5c3238c45b
Reviewed-on: https://upspin-review.googlesource.com/11460
Reviewed-by: Andrew Gerrand <adg@golang.org>
diff --git a/cloud/docker/release/makerelease.sh b/cloud/docker/release/makerelease.sh
index 4739357..46c7753 100755
--- a/cloud/docker/release/makerelease.sh
+++ b/cloud/docker/release/makerelease.sh
@@ -3,7 +3,7 @@
 # This script builds the Upspin commands and pushes them to release@upspin.io.
 # It is executed by the release Docker container.
 # The Docker container provides the Upspin repo in the /workspace directory and
-# sets the environment COMMIT_HASH variable to the current Git commit hash of
+# sets the environment variable COMMIT_SHA to the current Git commit hash of
 # that repo.
 # The Docker container is built atop xgo (https://github.com/karalabe/xgo)
 # which is a framework for cross-compiling cgo-enabled binaries. Its magic
@@ -29,6 +29,9 @@
 
 mkdir /build
 
+# Generate the version strings for the commands.
+GOPATH="$EXT_GOPATH" go generate -run make_version upspin.io/version
+
 for cmd in $cmds; do
 	TARGETS=""
 	for GOOS in $oses; do