summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2011-11-08 15:38:47 -0800
committerRob Pike <r@golang.org>2011-11-08 15:38:47 -0800
commitae8d912e3d110735b9fbfa2b1b11a20eae01d11b (patch)
treef512d24a10314c44da57a0cda4a368e3d1f276c0 /src
parent394c9152c957a1e4ce16806e4cd4026c6795969e (diff)
downloadgo-ae8d912e3d110735b9fbfa2b1b11a20eae01d11b.tar.gz
renaming_1: hand-edited files for go 1 renaming
This contains the files that required handiwork, mostly Makefiles with updated TARGs, plus the two packages with modified package names. html/template/doc.go needs a separate edit pass. test/fixedbugs/bug358.go is not legal go so gofix fails on it. R=rsc CC=golang-dev http://codereview.appspot.com/5340050
Diffstat (limited to 'src')
-rwxr-xr-xsrc/pkg/deps.bash59
-rw-r--r--src/pkg/encoding/asn1/Makefile2
-rw-r--r--src/pkg/encoding/csv/Makefile2
-rw-r--r--src/pkg/encoding/gob/Makefile2
-rw-r--r--src/pkg/encoding/json/Makefile2
-rw-r--r--src/pkg/encoding/xml/Makefile2
-rw-r--r--src/pkg/html/template/Makefile2
-rw-r--r--src/pkg/html/template/attr.go2
-rw-r--r--src/pkg/html/template/clone.go4
-rw-r--r--src/pkg/html/template/clone_test.go6
-rw-r--r--src/pkg/html/template/content.go2
-rw-r--r--src/pkg/html/template/content_test.go2
-rw-r--r--src/pkg/html/template/context.go2
-rw-r--r--src/pkg/html/template/css.go4
-rw-r--r--src/pkg/html/template/css_test.go2
-rw-r--r--src/pkg/html/template/doc.go7
-rw-r--r--src/pkg/html/template/error.go2
-rw-r--r--src/pkg/html/template/escape.go6
-rw-r--r--src/pkg/html/template/escape_test.go10
-rw-r--r--src/pkg/html/template/html.go4
-rw-r--r--src/pkg/html/template/html_test.go2
-rw-r--r--src/pkg/html/template/js.go6
-rw-r--r--src/pkg/html/template/js_test.go2
-rw-r--r--src/pkg/html/template/template.go4
-rw-r--r--src/pkg/html/template/transition.go2
-rw-r--r--src/pkg/html/template/url.go2
-rw-r--r--src/pkg/html/template/url_test.go2
-rw-r--r--src/pkg/log/syslog/Makefile2
-rw-r--r--src/pkg/math/big/Makefile2
-rw-r--r--src/pkg/math/cmplx/Makefile2
-rw-r--r--src/pkg/math/cmplx/abs.go4
-rw-r--r--src/pkg/math/cmplx/asin.go2
-rw-r--r--src/pkg/math/cmplx/cmath_test.go2
-rw-r--r--src/pkg/math/cmplx/conj.go2
-rw-r--r--src/pkg/math/cmplx/exp.go2
-rw-r--r--src/pkg/math/cmplx/isinf.go2
-rw-r--r--src/pkg/math/cmplx/isnan.go2
-rw-r--r--src/pkg/math/cmplx/log.go2
-rw-r--r--src/pkg/math/cmplx/phase.go2
-rw-r--r--src/pkg/math/cmplx/polar.go2
-rw-r--r--src/pkg/math/cmplx/pow.go2
-rw-r--r--src/pkg/math/cmplx/rect.go2
-rw-r--r--src/pkg/math/cmplx/sin.go2
-rw-r--r--src/pkg/math/cmplx/sqrt.go2
-rw-r--r--src/pkg/math/cmplx/tan.go2
-rw-r--r--src/pkg/math/rand/Makefile2
-rw-r--r--src/pkg/net/http/Makefile2
-rw-r--r--src/pkg/net/http/cgi/Makefile2
-rw-r--r--src/pkg/net/http/fcgi/Makefile2
-rw-r--r--src/pkg/net/http/httptest/Makefile2
-rw-r--r--src/pkg/net/http/pprof/Makefile2
-rw-r--r--src/pkg/net/mail/Makefile2
-rw-r--r--src/pkg/net/rpc/Makefile2
-rw-r--r--src/pkg/net/rpc/jsonrpc/Makefile2
-rw-r--r--src/pkg/net/smtp/Makefile2
-rw-r--r--src/pkg/net/url/Makefile2
-rw-r--r--src/pkg/os/exec/Makefile2
-rw-r--r--src/pkg/text/scanner/Makefile2
-rw-r--r--src/pkg/text/tabwriter/Makefile2
-rw-r--r--src/pkg/text/template/Makefile2
-rw-r--r--src/pkg/text/template/parse/Makefile2
-rw-r--r--src/pkg/unicode/utf16/Makefile2
-rw-r--r--src/pkg/unicode/utf8/Makefile2
63 files changed, 80 insertions, 138 deletions
diff --git a/src/pkg/deps.bash b/src/pkg/deps.bash
index ad752a093..c4c44f6b4 100755
--- a/src/pkg/deps.bash
+++ b/src/pkg/deps.bash
@@ -23,36 +23,6 @@ dirpat=$(echo $dirs C | awk '{
}
}')
-# Append old names of renamed packages. TODO: clean up after renaming.
-dirpat="$dirpat
-/^(asn1)$/
-/^(big)$/
-/^(cmath)$/
-/^(csv)$/
-/^(exec)$/
-/^(exp\/template\/html)$/
-/^(gob)$/
-/^(http)/
-/^(http\/cgi)$/
-/^(http\/fcgi)$/
-/^(http\/httptest)$/
-/^(http\/pprof)$/
-/^(json)$/
-/^(mail)$/
-/^(rand)$/
-/^(rpc)$/
-/^(scanner)$/
-/^(smtp)$/
-/^(syslog)$/
-/^(tabwriter)$/
-/^(url)$/
-/^(template)$/
-/^(template\/parse)$/
-/^(utf16)$/
-/^(utf8)$/
-/^(xml)$/
-"
-
for dir in $dirs; do (
cd $dir >/dev/null || exit 1
@@ -69,35 +39,6 @@ for dir in $dirs; do (
awk "$dirpat" |
grep -v "^$dir\$" |
sed 's/$/.install/' |
- # TODO: rename the dependencies for renamed directories. TODO: clean up after renaming.
- sed 's;^asn1.install$;encoding/asn1.install;
- s;^big.install$;math/big.install;
- s;^cmath.install$;math/cmplx.install;
- s;^csv.install$;encoding/csv.install;
- s;^exec.install$;os/exec.install;
- s;^exp/template/html.install$;html/template.install;
- s;^gob.install$;encoding/gob.install;
- s;^http.install$;net/http.install;
- s;^http/cgi.install$;net/http/cgi.install;
- s;^http/fcgi.install$;net/http/fcgi.install;
- s;^http/httptest.install$;net/http/httptest.install;
- s;^http/pprof.install$;net/http/pprof.install;
- s;^json.install$;encoding/json.install;
- s;^mail.install$;net/mail.install;
- s;^rpc.install$;net/rpc.install;
- s;^rpc/jsonrpc.install$;net/rpc/jsonrpc.install;
- s;^scanner.install$;text/scanner.install;
- s;^smtp.install$;net/smtp.install;
- s;^syslog.install$;log/syslog.install;
- s;^tabwriter.install$;text/tabwriter.install;
- s;^template.install$;text/template.install;
- s;^template/parse.install$;text/template/parse.install;
- s;^rand.install$;math/rand.install;
- s;^url.install$;net/url.install;
- s;^utf16.install$;unicode/utf16.install;
- s;^utf8.install$;unicode/utf8.install;
- s;^xml.install$;encoding/xml.install;' |
- # TODO: end of renamings.
sed 's;^C\.install;runtime/cgo.install;' |
sort -u
)
diff --git a/src/pkg/encoding/asn1/Makefile b/src/pkg/encoding/asn1/Makefile
index 692c46987..1c046dc36 100644
--- a/src/pkg/encoding/asn1/Makefile
+++ b/src/pkg/encoding/asn1/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=asn1
+TARG=encoding/asn1
GOFILES=\
asn1.go\
common.go\
diff --git a/src/pkg/encoding/csv/Makefile b/src/pkg/encoding/csv/Makefile
index 7476d816a..9e04c5b90 100644
--- a/src/pkg/encoding/csv/Makefile
+++ b/src/pkg/encoding/csv/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=csv
+TARG=encoding/csv
GOFILES=\
reader.go\
writer.go\
diff --git a/src/pkg/encoding/gob/Makefile b/src/pkg/encoding/gob/Makefile
index 70ea22f94..6c7693cba 100644
--- a/src/pkg/encoding/gob/Makefile
+++ b/src/pkg/encoding/gob/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=gob
+TARG=encoding/gob
GOFILES=\
decode.go\
decoder.go\
diff --git a/src/pkg/encoding/json/Makefile b/src/pkg/encoding/json/Makefile
index 203cf3ca9..37223e75e 100644
--- a/src/pkg/encoding/json/Makefile
+++ b/src/pkg/encoding/json/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=json
+TARG=encoding/json
GOFILES=\
decode.go\
encode.go\
diff --git a/src/pkg/encoding/xml/Makefile b/src/pkg/encoding/xml/Makefile
index 731d2ad95..dccb1009f 100644
--- a/src/pkg/encoding/xml/Makefile
+++ b/src/pkg/encoding/xml/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=xml
+TARG=encoding/xml
GOFILES=\
marshal.go\
diff --git a/src/pkg/html/template/Makefile b/src/pkg/html/template/Makefile
index 57f034614..d27601a33 100644
--- a/src/pkg/html/template/Makefile
+++ b/src/pkg/html/template/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=exp/template/html
+TARG=html/template
GOFILES=\
attr.go\
clone.go\
diff --git a/src/pkg/html/template/attr.go b/src/pkg/html/template/attr.go
index 6a36c7b71..3ea02880d 100644
--- a/src/pkg/html/template/attr.go
+++ b/src/pkg/html/template/attr.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"strings"
diff --git a/src/pkg/html/template/clone.go b/src/pkg/html/template/clone.go
index 803a64de1..d0d8ea467 100644
--- a/src/pkg/html/template/clone.go
+++ b/src/pkg/html/template/clone.go
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
- "template/parse"
+ "text/template/parse"
)
// clone clones a template Node.
diff --git a/src/pkg/html/template/clone_test.go b/src/pkg/html/template/clone_test.go
index 9e557d288..ed1698acd 100644
--- a/src/pkg/html/template/clone_test.go
+++ b/src/pkg/html/template/clone_test.go
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"bytes"
- "template"
- "template/parse"
"testing"
+ "text/template"
+ "text/template/parse"
)
func TestClone(t *testing.T) {
diff --git a/src/pkg/html/template/content.go b/src/pkg/html/template/content.go
index dcaff8c15..d720d4ba6 100644
--- a/src/pkg/html/template/content.go
+++ b/src/pkg/html/template/content.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"fmt"
diff --git a/src/pkg/html/template/content_test.go b/src/pkg/html/template/content_test.go
index bee2ed1c1..c96a521a5 100644
--- a/src/pkg/html/template/content_test.go
+++ b/src/pkg/html/template/content_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"bytes"
diff --git a/src/pkg/html/template/context.go b/src/pkg/html/template/context.go
index c44df4deb..7202221b8 100644
--- a/src/pkg/html/template/context.go
+++ b/src/pkg/html/template/context.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"fmt"
diff --git a/src/pkg/html/template/css.go b/src/pkg/html/template/css.go
index c26ae78d1..b0a2f013d 100644
--- a/src/pkg/html/template/css.go
+++ b/src/pkg/html/template/css.go
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"bytes"
"fmt"
"unicode"
- "utf8"
+ "unicode/utf8"
)
// endsWithCSSKeyword returns whether b ends with an ident that
diff --git a/src/pkg/html/template/css_test.go b/src/pkg/html/template/css_test.go
index b3b83e855..0d94bdcf1 100644
--- a/src/pkg/html/template/css_test.go
+++ b/src/pkg/html/template/css_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"strconv"
diff --git a/src/pkg/html/template/doc.go b/src/pkg/html/template/doc.go
index 8aca42f56..0324c9c0e 100644
--- a/src/pkg/html/template/doc.go
+++ b/src/pkg/html/template/doc.go
@@ -3,8 +3,9 @@
// license that can be found in the LICENSE file.
/*
-Package html is a specialization of package template that automates the
-construction of HTML output that is safe against code injection.
+Package template (html/template) is a specialization of package text/template
+that automates the construction of HTML output that is safe against code
+injection.
Introduction
@@ -182,4 +183,4 @@ Least Surprise Property
knows that contextual autoescaping happens should be able to look at a {{.}}
and correctly infer what sanitization happens."
*/
-package html
+package template
diff --git a/src/pkg/html/template/error.go b/src/pkg/html/template/error.go
index cb2994bc8..9622d7e48 100644
--- a/src/pkg/html/template/error.go
+++ b/src/pkg/html/template/error.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"fmt"
diff --git a/src/pkg/html/template/escape.go b/src/pkg/html/template/escape.go
index e8eae8f17..8ac07eae2 100644
--- a/src/pkg/html/template/escape.go
+++ b/src/pkg/html/template/escape.go
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"bytes"
"fmt"
"html"
- "template"
- "template/parse"
+ "text/template"
+ "text/template/parse"
)
// escape rewrites each action in the template to guarantee that the output is
diff --git a/src/pkg/html/template/escape_test.go b/src/pkg/html/template/escape_test.go
index f705947a0..d8bfa3211 100644
--- a/src/pkg/html/template/escape_test.go
+++ b/src/pkg/html/template/escape_test.go
@@ -2,16 +2,16 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"bytes"
+ "encoding/json"
"fmt"
- "json"
"strings"
- "template"
- "template/parse"
"testing"
+ "text/template"
+ "text/template/parse"
)
type badMarshaler struct{}
@@ -224,7 +224,7 @@ func TestEscape(t *testing.T) {
{
"badMarshaller",
`<button onclick='alert(1/{{.B}}in numbers)'>`,
- `<button onclick='alert(1/ /* json: error calling MarshalJSON for type *html.badMarshaler: invalid character &#39;f&#39; looking for beginning of object key string */null in numbers)'>`,
+ `<button onclick='alert(1/ /* json: error calling MarshalJSON for type *template.badMarshaler: invalid character &#39;f&#39; looking for beginning of object key string */null in numbers)'>`,
},
{
"jsMarshaller",
diff --git a/src/pkg/html/template/html.go b/src/pkg/html/template/html.go
index 92d8f4199..7b77d6531 100644
--- a/src/pkg/html/template/html.go
+++ b/src/pkg/html/template/html.go
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"bytes"
"fmt"
"strings"
- "utf8"
+ "unicode/utf8"
)
// htmlNospaceEscaper escapes for inclusion in unquoted attribute values.
diff --git a/src/pkg/html/template/html_test.go b/src/pkg/html/template/html_test.go
index e178d0f27..b9b970387 100644
--- a/src/pkg/html/template/html_test.go
+++ b/src/pkg/html/template/html_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"html"
diff --git a/src/pkg/html/template/js.go b/src/pkg/html/template/js.go
index 22be4183d..68c53e5ca 100644
--- a/src/pkg/html/template/js.go
+++ b/src/pkg/html/template/js.go
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"bytes"
+ "encoding/json"
"fmt"
- "json"
"strings"
- "utf8"
+ "unicode/utf8"
)
// nextJSCtx returns the context that determines whether a slash after the
diff --git a/src/pkg/html/template/js_test.go b/src/pkg/html/template/js_test.go
index e7764054a..311e1d2c4 100644
--- a/src/pkg/html/template/js_test.go
+++ b/src/pkg/html/template/js_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"bytes"
diff --git a/src/pkg/html/template/template.go b/src/pkg/html/template/template.go
index 04066ab40..473342993 100644
--- a/src/pkg/html/template/template.go
+++ b/src/pkg/html/template/template.go
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"fmt"
"io"
"path/filepath"
- "template"
+ "text/template"
)
// Set is a specialized template.Set that produces a safe HTML document
diff --git a/src/pkg/html/template/transition.go b/src/pkg/html/template/transition.go
index 49a145117..96a4f6678 100644
--- a/src/pkg/html/template/transition.go
+++ b/src/pkg/html/template/transition.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"bytes"
diff --git a/src/pkg/html/template/url.go b/src/pkg/html/template/url.go
index 5b19df084..454c791ec 100644
--- a/src/pkg/html/template/url.go
+++ b/src/pkg/html/template/url.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"bytes"
diff --git a/src/pkg/html/template/url_test.go b/src/pkg/html/template/url_test.go
index b84623151..5182e9d79 100644
--- a/src/pkg/html/template/url_test.go
+++ b/src/pkg/html/template/url_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package html
+package template
import (
"testing"
diff --git a/src/pkg/log/syslog/Makefile b/src/pkg/log/syslog/Makefile
index 27cdedb6f..225307cf9 100644
--- a/src/pkg/log/syslog/Makefile
+++ b/src/pkg/log/syslog/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=syslog
+TARG=log/syslog
GOFILES=\
syslog.go\
syslog_unix.go\
diff --git a/src/pkg/math/big/Makefile b/src/pkg/math/big/Makefile
index 8e9f956da..1ba081812 100644
--- a/src/pkg/math/big/Makefile
+++ b/src/pkg/math/big/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=big
+TARG=math/big
GOFILES=\
arith.go\
arith_decl.go\
diff --git a/src/pkg/math/cmplx/Makefile b/src/pkg/math/cmplx/Makefile
index c95b85682..b6e8aa334 100644
--- a/src/pkg/math/cmplx/Makefile
+++ b/src/pkg/math/cmplx/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=cmath
+TARG=math/cmplx
GOFILES=\
abs.go\
diff --git a/src/pkg/math/cmplx/abs.go b/src/pkg/math/cmplx/abs.go
index f3199cad5..f3cd1073e 100644
--- a/src/pkg/math/cmplx/abs.go
+++ b/src/pkg/math/cmplx/abs.go
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// Package cmath provides basic constants and mathematical functions for
+// Package cmplx provides basic constants and mathematical functions for
// complex numbers.
-package cmath
+package cmplx
import "math"
diff --git a/src/pkg/math/cmplx/asin.go b/src/pkg/math/cmplx/asin.go
index 01ce80a19..61880a257 100644
--- a/src/pkg/math/cmplx/asin.go
+++ b/src/pkg/math/cmplx/asin.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
import "math"
diff --git a/src/pkg/math/cmplx/cmath_test.go b/src/pkg/math/cmplx/cmath_test.go
index 6a595b0a6..610ca8ceb 100644
--- a/src/pkg/math/cmplx/cmath_test.go
+++ b/src/pkg/math/cmplx/cmath_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
import (
"math"
diff --git a/src/pkg/math/cmplx/conj.go b/src/pkg/math/cmplx/conj.go
index 776b57da7..34a4277c1 100644
--- a/src/pkg/math/cmplx/conj.go
+++ b/src/pkg/math/cmplx/conj.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
// Conj returns the complex conjugate of x.
func Conj(x complex128) complex128 { return complex(real(x), -imag(x)) }
diff --git a/src/pkg/math/cmplx/exp.go b/src/pkg/math/cmplx/exp.go
index 64c1ef409..485ed2c78 100644
--- a/src/pkg/math/cmplx/exp.go
+++ b/src/pkg/math/cmplx/exp.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
import "math"
diff --git a/src/pkg/math/cmplx/isinf.go b/src/pkg/math/cmplx/isinf.go
index f23d2dea7..d5a65b44b 100644
--- a/src/pkg/math/cmplx/isinf.go
+++ b/src/pkg/math/cmplx/isinf.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
import "math"
diff --git a/src/pkg/math/cmplx/isnan.go b/src/pkg/math/cmplx/isnan.go
index 2063bb835..05d0cce63 100644
--- a/src/pkg/math/cmplx/isnan.go
+++ b/src/pkg/math/cmplx/isnan.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
import "math"
diff --git a/src/pkg/math/cmplx/log.go b/src/pkg/math/cmplx/log.go
index 8e6964fee..881a064d8 100644
--- a/src/pkg/math/cmplx/log.go
+++ b/src/pkg/math/cmplx/log.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
import "math"
diff --git a/src/pkg/math/cmplx/phase.go b/src/pkg/math/cmplx/phase.go
index 2d67aa34c..03cece8a5 100644
--- a/src/pkg/math/cmplx/phase.go
+++ b/src/pkg/math/cmplx/phase.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
import "math"
diff --git a/src/pkg/math/cmplx/polar.go b/src/pkg/math/cmplx/polar.go
index 033676acc..9b192bc62 100644
--- a/src/pkg/math/cmplx/polar.go
+++ b/src/pkg/math/cmplx/polar.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
// Polar returns the absolute value r and phase θ of x,
// such that x = r * e**θi.
diff --git a/src/pkg/math/cmplx/pow.go b/src/pkg/math/cmplx/pow.go
index 68e1207c6..4dbc58398 100644
--- a/src/pkg/math/cmplx/pow.go
+++ b/src/pkg/math/cmplx/pow.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
import "math"
diff --git a/src/pkg/math/cmplx/rect.go b/src/pkg/math/cmplx/rect.go
index b955f0bf7..bf94d787e 100644
--- a/src/pkg/math/cmplx/rect.go
+++ b/src/pkg/math/cmplx/rect.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
import "math"
diff --git a/src/pkg/math/cmplx/sin.go b/src/pkg/math/cmplx/sin.go
index 486b71787..2c57536ed 100644
--- a/src/pkg/math/cmplx/sin.go
+++ b/src/pkg/math/cmplx/sin.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
import "math"
diff --git a/src/pkg/math/cmplx/sqrt.go b/src/pkg/math/cmplx/sqrt.go
index 4e7e8050f..179b5396a 100644
--- a/src/pkg/math/cmplx/sqrt.go
+++ b/src/pkg/math/cmplx/sqrt.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
import "math"
diff --git a/src/pkg/math/cmplx/tan.go b/src/pkg/math/cmplx/tan.go
index 67dc22ad0..9485315d8 100644
--- a/src/pkg/math/cmplx/tan.go
+++ b/src/pkg/math/cmplx/tan.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package cmath
+package cmplx
import "math"
diff --git a/src/pkg/math/rand/Makefile b/src/pkg/math/rand/Makefile
index 81c2d88c2..d2903d59b 100644
--- a/src/pkg/math/rand/Makefile
+++ b/src/pkg/math/rand/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=rand
+TARG=math/rand
GOFILES=\
exp.go\
normal.go\
diff --git a/src/pkg/net/http/Makefile b/src/pkg/net/http/Makefile
index 13705e738..4bf33a629 100644
--- a/src/pkg/net/http/Makefile
+++ b/src/pkg/net/http/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=http
+TARG=net/http
GOFILES=\
chunked.go\
client.go\
diff --git a/src/pkg/net/http/cgi/Makefile b/src/pkg/net/http/cgi/Makefile
index fce7aed41..0d6be0180 100644
--- a/src/pkg/net/http/cgi/Makefile
+++ b/src/pkg/net/http/cgi/Makefile
@@ -4,7 +4,7 @@
include ../../../../Make.inc
-TARG=http/cgi
+TARG=net/http/cgi
GOFILES=\
child.go\
host.go\
diff --git a/src/pkg/net/http/fcgi/Makefile b/src/pkg/net/http/fcgi/Makefile
index 65914361b..9a75f1a80 100644
--- a/src/pkg/net/http/fcgi/Makefile
+++ b/src/pkg/net/http/fcgi/Makefile
@@ -4,7 +4,7 @@
include ../../../../Make.inc
-TARG=http/fcgi
+TARG=net/http/fcgi
GOFILES=\
child.go\
fcgi.go\
diff --git a/src/pkg/net/http/httptest/Makefile b/src/pkg/net/http/httptest/Makefile
index 217cb9bbd..3bb445419 100644
--- a/src/pkg/net/http/httptest/Makefile
+++ b/src/pkg/net/http/httptest/Makefile
@@ -4,7 +4,7 @@
include ../../../../Make.inc
-TARG=http/httptest
+TARG=net/http/httptest
GOFILES=\
recorder.go\
server.go\
diff --git a/src/pkg/net/http/pprof/Makefile b/src/pkg/net/http/pprof/Makefile
index 9b60273bf..b78fce8e4 100644
--- a/src/pkg/net/http/pprof/Makefile
+++ b/src/pkg/net/http/pprof/Makefile
@@ -4,7 +4,7 @@
include ../../../../Make.inc
-TARG=http/pprof
+TARG=net/http/pprof
GOFILES=\
pprof.go\
diff --git a/src/pkg/net/mail/Makefile b/src/pkg/net/mail/Makefile
index 5ab8acfa1..acb1c2a6d 100644
--- a/src/pkg/net/mail/Makefile
+++ b/src/pkg/net/mail/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=mail
+TARG=net/mail
GOFILES=\
message.go\
diff --git a/src/pkg/net/rpc/Makefile b/src/pkg/net/rpc/Makefile
index b1872d6d0..0e6c9846b 100644
--- a/src/pkg/net/rpc/Makefile
+++ b/src/pkg/net/rpc/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=rpc
+TARG=net/rpc
GOFILES=\
client.go\
debug.go\
diff --git a/src/pkg/net/rpc/jsonrpc/Makefile b/src/pkg/net/rpc/jsonrpc/Makefile
index 1bb2a0d0e..c5ea5373d 100644
--- a/src/pkg/net/rpc/jsonrpc/Makefile
+++ b/src/pkg/net/rpc/jsonrpc/Makefile
@@ -4,7 +4,7 @@
include ../../../../Make.inc
-TARG=rpc/jsonrpc
+TARG=net/rpc/jsonrpc
GOFILES=\
client.go\
server.go\
diff --git a/src/pkg/net/smtp/Makefile b/src/pkg/net/smtp/Makefile
index 810f3ff91..d9812d5cb 100644
--- a/src/pkg/net/smtp/Makefile
+++ b/src/pkg/net/smtp/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=smtp
+TARG=net/smtp
GOFILES=\
auth.go\
smtp.go\
diff --git a/src/pkg/net/url/Makefile b/src/pkg/net/url/Makefile
index f583cdf63..bef0647a4 100644
--- a/src/pkg/net/url/Makefile
+++ b/src/pkg/net/url/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=url
+TARG=net/url
GOFILES=\
url.go\
diff --git a/src/pkg/os/exec/Makefile b/src/pkg/os/exec/Makefile
index 702d6a382..ff86a58f5 100644
--- a/src/pkg/os/exec/Makefile
+++ b/src/pkg/os/exec/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=exec
+TARG=os/exec
GOFILES=\
exec.go\
diff --git a/src/pkg/text/scanner/Makefile b/src/pkg/text/scanner/Makefile
index 6b6e075df..c0f28dc94 100644
--- a/src/pkg/text/scanner/Makefile
+++ b/src/pkg/text/scanner/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=scanner
+TARG=text/scanner
GOFILES=\
scanner.go\
diff --git a/src/pkg/text/tabwriter/Makefile b/src/pkg/text/tabwriter/Makefile
index 70ad25cea..ba1bf5795 100644
--- a/src/pkg/text/tabwriter/Makefile
+++ b/src/pkg/text/tabwriter/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=tabwriter
+TARG=text/tabwriter
GOFILES=\
tabwriter.go\
diff --git a/src/pkg/text/template/Makefile b/src/pkg/text/template/Makefile
index 159b5a7c2..3a3173d20 100644
--- a/src/pkg/text/template/Makefile
+++ b/src/pkg/text/template/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=template
+TARG=text/template
GOFILES=\
doc.go\
exec.go\
diff --git a/src/pkg/text/template/parse/Makefile b/src/pkg/text/template/parse/Makefile
index 39986b943..72bb55064 100644
--- a/src/pkg/text/template/parse/Makefile
+++ b/src/pkg/text/template/parse/Makefile
@@ -4,7 +4,7 @@
include ../../../../Make.inc
-TARG=template/parse
+TARG=text/template/parse
GOFILES=\
lex.go\
node.go\
diff --git a/src/pkg/unicode/utf16/Makefile b/src/pkg/unicode/utf16/Makefile
index b60a5e731..f64b3c86e 100644
--- a/src/pkg/unicode/utf16/Makefile
+++ b/src/pkg/unicode/utf16/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=utf16
+TARG=unicode/utf16
GOFILES=\
utf16.go\
diff --git a/src/pkg/unicode/utf8/Makefile b/src/pkg/unicode/utf8/Makefile
index 4ffc31f08..9863433b0 100644
--- a/src/pkg/unicode/utf8/Makefile
+++ b/src/pkg/unicode/utf8/Makefile
@@ -4,7 +4,7 @@
include ../../../Make.inc
-TARG=utf8
+TARG=unicode/utf8
GOFILES=\
string.go\
utf8.go\