From 73d2e795b859a48cba2d70040c384dd1cea7e113 Mon Sep 17 00:00:00 2001 From: Mohit Agarwal Date: Tue, 1 Dec 2015 18:51:54 +0530 Subject: [PATCH] cmd/godoc: fix command for creating the zip file The `-r` option (to recurse into directories) need to be specified else the created file consists only of the specified directory and nothing else. Change-Id: I624184fc2e88998a3119c12f8c328603588c123c Reviewed-on: https://go-review.googlesource.com/17283 Reviewed-by: Russ Cox --- cmd/godoc/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/godoc/doc.go b/cmd/godoc/doc.go index 275423a1..9ff6026d 100644 --- a/cmd/godoc/doc.go +++ b/cmd/godoc/doc.go @@ -134,7 +134,7 @@ slash ('/') as path separator; and they must be unrooted. $GOROOT (or -goroot) must be set to the .zip file directory path containing the Go root directory. For instance, for a .zip file created by the command: - zip go.zip $HOME/go + zip -r go.zip $HOME/go one may run godoc as follows: