aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-05-04 01:43:39 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-05-04 01:43:39 +0000
commit105073e1cc39fbeb03aa40e294ffc3c400cfa844 (patch)
tree2ac7af758f83baa90741417d95fd47f725259a8b
parent28fc5502cffc8cc4bda8f61dbf8df90b21b5118d (diff)
downloadgcc-105073e1cc39fbeb03aa40e294ffc3c400cfa844.zip
gcc-105073e1cc39fbeb03aa40e294ffc3c400cfa844.tar.gz
gcc-105073e1cc39fbeb03aa40e294ffc3c400cfa844.tar.bz2
cmd/go: update mkalldocs.sh
Update mkalldocs.sh from the current master sources, replacing the old mkdoc.sh. Reviewed-on: https://go-review.googlesource.com/111096 From-SVN: r259920
-rw-r--r--gcc/go/gofrontend/MERGE2
-rwxr-xr-xlibgo/go/cmd/go/mkalldocs.sh11
-rw-r--r--libgo/go/cmd/go/mkdoc.sh9
3 files changed, 12 insertions, 10 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index c36b08e..d299f23 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-12325f36d965e2ac3a4cbf787472ce24923327da
+30e2033a91fc08be9351d26737599a1fa6486017
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
diff --git a/libgo/go/cmd/go/mkalldocs.sh b/libgo/go/cmd/go/mkalldocs.sh
new file mode 100755
index 0000000..72886db
--- /dev/null
+++ b/libgo/go/cmd/go/mkalldocs.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# Copyright 2012 The Go Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+set -e
+
+go build -o go.latest
+./go.latest help documentation >alldocs.go
+gofmt -w alldocs.go
+rm go.latest
diff --git a/libgo/go/cmd/go/mkdoc.sh b/libgo/go/cmd/go/mkdoc.sh
deleted file mode 100644
index 12fd7ba..0000000
--- a/libgo/go/cmd/go/mkdoc.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-# Copyright 2012 The Go Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style
-# license that can be found in the LICENSE file.
-
-go install # So the next line will produce updated documentation.
-go help documentation > doc.go
-gofmt -w doc.go
-