diff mbox

gotools patch committed: Add trivial man pages

Message ID CAOyqgcXoHvgDXhD5SoMU0KH3mn-X7dNBbuN80UQncYge66TTnA@mail.gmail.com
State New
Headers show

Commit Message

Ian Lance Taylor Jan. 23, 2015, 1:42 a.m. UTC
Per Richi's request, I've committed this patch to gotools to add
trivial man pages for the go and gofmt commands.  The cgo command is
internal and does not require a man page.  Bootstrapped on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian


2015-01-22  Ian Lance Taylor  <iant@google.com>

PR go/64595
* go.1, gofmt.1: New files.
* Makefile.am (man_MANS): New variable.
* Makefile.in: Rebuild.
diff mbox

Patch

Index: Makefile.am
===================================================================
--- Makefile.am	(revision 219985)
+++ Makefile.am	(working copy)
@@ -106,6 +106,7 @@  if NATIVE
 
 bin_PROGRAMS = go$(EXEEXT) gofmt$(EXEEXT)
 noinst_PROGRAMS = cgo$(EXEEXT)
+man_MANS = go.1 gofmt.1
 
 go$(EXEEXT): $(go_cmd_go_files) zdefaultcc.go $(LIBGODEP)
 	$(GOLINK) $(go_cmd_go_files) zdefaultcc.go $(LIBS) $(NET_LIBS)
Index: go.1
===================================================================
--- go.1	(revision 0)
+++ go.1	(working copy)
@@ -0,0 +1,12 @@ 
+.TH go "1" "January 2015" "Go" "User Commands"
+.SH NAME
+go \- build, test, install Go programs
+.SH SYNOPSIS
+.B go
+\fIcommand\fR [\fIarguments\fR]
+.SH DESCRIPTION
+.PP
+A tool for managing Go source code.  For full documentation run
+\fBgo help\fR or see \fBhttp://golang.org/cmd/go\fR.
+.SH "SEE ALSO"
+.IR gofmt (1)
Index: gofmt.1
===================================================================
--- gofmt.1	(revision 0)
+++ gofmt.1	(working copy)
@@ -0,0 +1,12 @@ 
+.TH gofmt "1" "January 2015" "Go" "User Commands"
+.SH NAME
+gofmt \- format Go code
+.SH SYNOPSIS
+.B gofmt
+[\fIflags\fR] [\fIpath\fR]...
+.SH DESCRIPTION
+.PP
+A tool for formatting Go source code.  For full documentation run
+\fBgofmt -help\fR or see \fBhttp://golang.org/cmd/gofmt\fR.
+.SH "SEE ALSO"
+.IR go (1)