]> Cypherpunks repositories - gostls13.git/commitdiff
doc: fix tutorial and Makefile PATH without dot
authorAndrew Gerrand <adg@golang.org>
Mon, 10 Oct 2011 00:16:04 +0000 (11:16 +1100)
committerAndrew Gerrand <adg@golang.org>
Mon, 10 Oct 2011 00:16:04 +0000 (11:16 +1100)
Fixes #2351.

R=r, bradfitz
CC=golang-dev
https://golang.org/cl/5235056

doc/Makefile
doc/go_tutorial.html
doc/go_tutorial.tmpl

index 29d7e2c068df4b89287a66af2479898ae27448d1..7957a0d0aa1957bf3172461b343d88218f8bf7c1 100644 (file)
@@ -9,10 +9,9 @@ GOFILES=\
        tmpltohtml.go\
 
 go_tutorial.html: go_tutorial.tmpl tmpltohtml
-       makehtml go_tutorial.tmpl
+       ./makehtml go_tutorial.tmpl
 
 effective_go.html: effective_go.tmpl tmpltohtml
-       makehtml effective_go.tmpl
-
+       ./makehtml effective_go.tmpl
 
 include ../src/Make.cmd
index 8f6e07b06c57c6fe2e736106051a2bf26df28470..40c793057ff83cc1064fd37cdda6c4fc236918c8 100644 (file)
@@ -104,7 +104,7 @@ With <code>gccgo</code> it looks a little more traditional.
 <p>
 <pre>
 $ gccgo helloworld.go
-$ a.out
+$ ./a.out
 Hello, world; or Καλημέρα κόσμε; or こんにちは 世界
 $
 </pre>
@@ -706,7 +706,7 @@ Now we can compile and run the program. On Unix, this would be the result:
 $ 6g file.go                       # compile file package
 $ 6g helloworld3.go                # compile main package
 $ 6l -o helloworld3 helloworld3.6  # link - no need to mention "file"
-$ helloworld3
+$ ./helloworld3
 hello, world
 can't open file; err=No such file or directory
 $
index 15f87ca4b29019ce7efb9b0bec3ff3810b62a065..4377dabde0f19ffc5acdb4f1badff8acaec37d24 100644 (file)
@@ -96,7 +96,7 @@ With <code>gccgo</code> it looks a little more traditional.
 <p>
 <pre>
 $ gccgo helloworld.go
-$ a.out
+$ ./a.out
 Hello, world; or Καλημέρα κόσμε; or こんにちは 世界
 $
 </pre>
@@ -547,7 +547,7 @@ Now we can compile and run the program. On Unix, this would be the result:
 $ 6g file.go                       # compile file package
 $ 6g helloworld3.go                # compile main package
 $ 6l -o helloworld3 helloworld3.6  # link - no need to mention "file"
-$ helloworld3
+$ ./helloworld3
 hello, world
 can't open file; err=No such file or directory
 $