From: Andrew Gerrand Date: Thu, 14 Apr 2016 02:12:11 +0000 (+1000) Subject: doc: add classes to version tags in source install instructions X-Git-Tag: go1.7beta1~666 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d093a6269160cf94b7add76dc3e60e94d8afc44e;p=gostls13.git doc: add classes to version tags in source install instructions This will allow us to mechanically substitute these strings using javascript (in a forthcoming change to x/tools/godoc). Updates #14371 Change-Id: I96e876283060ffbc9f3eabaf55d6b880685453e1 Reviewed-on: https://go-review.googlesource.com/22055 Reviewed-by: Brad Fitzpatrick --- diff --git a/doc/install-source.html b/doc/install-source.html index fc4d66fd2a..d9157c2b17 100644 --- a/doc/install-source.html +++ b/doc/install-source.html @@ -194,14 +194,19 @@ To build without cgo, set the environment variable

Go will install to a directory named go. Change to the directory that will be its parent and make sure the go directory does not exist. -Then clone the repository and check out the latest release tag:

+Then clone the repository and check out the latest release tag +(go1.6, for example):

 $ git clone https://go.googlesource.com/go
 $ cd go
-$ git checkout go1.6
+$ git checkout <tag>
 
+

+Where <tag> is the version string of the release. +

+

If you intend to modify the go source code, and @@ -378,7 +383,7 @@ New releases are announced on the golang-announce mailing list. Each announcement mentions the latest release tag, for instance, -go1.6. +go1.6.

@@ -388,11 +393,13 @@ To update an existing tree to the latest release, you can run:

 $ cd go/src
 $ git fetch
-$ git checkout <tag>
+$ git checkout <tag>
 $ ./all.bash
 
+

Where <tag> is the version string of the release. +

Optional environment variables