]> Cypherpunks repositories - gostls13.git/commitdiff
os,text,unicode: renamings
authorRob Pike <r@golang.org>
Thu, 3 Nov 2011 21:18:06 +0000 (14:18 -0700)
committerRob Pike <r@golang.org>
Thu, 3 Nov 2011 21:18:06 +0000 (14:18 -0700)
This is Go 1 package renaming CL #4.
This one merely moves the source; the import strings will be
changed after the next weekly release.
This one moves pieces into os, text, and unicode.

exec -> os/exec
scanner -> text/scanner
tabwriter -> text/tabwriter
template -> text/template
template/parse -> text/template/parse
utf16 -> unicode/utf16
utf8 -> unicode/utf8

This should be the last of the source-rearranging CLs.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5331066

43 files changed:
src/pkg/Makefile
src/pkg/deps.bash
src/pkg/os/exec/Makefile [moved from src/pkg/exec/Makefile with 88% similarity]
src/pkg/os/exec/exec.go [moved from src/pkg/exec/exec.go with 100% similarity]
src/pkg/os/exec/exec_test.go [moved from src/pkg/exec/exec_test.go with 100% similarity]
src/pkg/os/exec/lp_plan9.go [moved from src/pkg/exec/lp_plan9.go with 100% similarity]
src/pkg/os/exec/lp_test.go [moved from src/pkg/exec/lp_test.go with 100% similarity]
src/pkg/os/exec/lp_unix.go [moved from src/pkg/exec/lp_unix.go with 100% similarity]
src/pkg/os/exec/lp_windows.go [moved from src/pkg/exec/lp_windows.go with 100% similarity]
src/pkg/text/scanner/Makefile [moved from src/pkg/scanner/Makefile with 78% similarity]
src/pkg/text/scanner/scanner.go [moved from src/pkg/scanner/scanner.go with 100% similarity]
src/pkg/text/scanner/scanner_test.go [moved from src/pkg/scanner/scanner_test.go with 100% similarity]
src/pkg/text/tabwriter/Makefile [moved from src/pkg/tabwriter/Makefile with 79% similarity]
src/pkg/text/tabwriter/tabwriter.go [moved from src/pkg/tabwriter/tabwriter.go with 100% similarity]
src/pkg/text/tabwriter/tabwriter_test.go [moved from src/pkg/tabwriter/tabwriter_test.go with 100% similarity]
src/pkg/text/template/Makefile [moved from src/pkg/template/Makefile with 82% similarity]
src/pkg/text/template/doc.go [moved from src/pkg/template/doc.go with 100% similarity]
src/pkg/text/template/exec.go [moved from src/pkg/template/exec.go with 100% similarity]
src/pkg/text/template/exec_test.go [moved from src/pkg/template/exec_test.go with 100% similarity]
src/pkg/text/template/funcs.go [moved from src/pkg/template/funcs.go with 100% similarity]
src/pkg/text/template/helper.go [moved from src/pkg/template/helper.go with 100% similarity]
src/pkg/text/template/parse.go [moved from src/pkg/template/parse.go with 100% similarity]
src/pkg/text/template/parse/Makefile [moved from src/pkg/template/parse/Makefile with 79% similarity]
src/pkg/text/template/parse/lex.go [moved from src/pkg/template/parse/lex.go with 100% similarity]
src/pkg/text/template/parse/lex_test.go [moved from src/pkg/template/parse/lex_test.go with 100% similarity]
src/pkg/text/template/parse/node.go [moved from src/pkg/template/parse/node.go with 100% similarity]
src/pkg/text/template/parse/parse.go [moved from src/pkg/template/parse/parse.go with 100% similarity]
src/pkg/text/template/parse/parse_test.go [moved from src/pkg/template/parse/parse_test.go with 100% similarity]
src/pkg/text/template/parse/set.go [moved from src/pkg/template/parse/set.go with 100% similarity]
src/pkg/text/template/set.go [moved from src/pkg/template/set.go with 100% similarity]
src/pkg/text/template/set_test.go [moved from src/pkg/template/set_test.go with 100% similarity]
src/pkg/text/template/testdata/file1.tmpl [moved from src/pkg/template/testdata/file1.tmpl with 100% similarity]
src/pkg/text/template/testdata/file2.tmpl [moved from src/pkg/template/testdata/file2.tmpl with 100% similarity]
src/pkg/text/template/testdata/tmpl1.tmpl [moved from src/pkg/template/testdata/tmpl1.tmpl with 100% similarity]
src/pkg/text/template/testdata/tmpl2.tmpl [moved from src/pkg/template/testdata/tmpl2.tmpl with 100% similarity]
src/pkg/unicode/utf16/Makefile [moved from src/pkg/utf16/Makefile with 78% similarity]
src/pkg/unicode/utf16/utf16.go [moved from src/pkg/utf16/utf16.go with 100% similarity]
src/pkg/unicode/utf16/utf16_test.go [moved from src/pkg/utf16/utf16_test.go with 100% similarity]
src/pkg/unicode/utf8/Makefile [moved from src/pkg/utf8/Makefile with 79% similarity]
src/pkg/unicode/utf8/string.go [moved from src/pkg/utf8/string.go with 100% similarity]
src/pkg/unicode/utf8/string_test.go [moved from src/pkg/utf8/string_test.go with 100% similarity]
src/pkg/unicode/utf8/utf8.go [moved from src/pkg/utf8/utf8.go with 100% similarity]
src/pkg/unicode/utf8/utf8_test.go [moved from src/pkg/utf8/utf8_test.go with 100% similarity]

index 691eda4a080a79ac6fac7c484b2b0c46c21ef03c..e9286441c2779ffdc3a4fa5da8ec73a2fcc0d824 100644 (file)
@@ -77,7 +77,6 @@ DIRS=\
        encoding/pem\
        encoding/xml\
        errors\
-       exec\
        exp/ebnf\
        exp/ebnflint\
        exp/gotype\
@@ -142,6 +141,7 @@ DIRS=\
        old/regexp\
        old/template\
        os\
+       os/exec\
        os/signal\
        os/user\
        patch\
@@ -154,24 +154,24 @@ DIRS=\
        runtime/cgo\
        runtime/debug\
        runtime/pprof\
-       scanner\
        sort\
        strconv\
        strings\
        sync\
        sync/atomic\
        syscall\
-       tabwriter\
-       template\
-       template/parse\
        testing\
        testing/iotest\
        testing/quick\
        testing/script\
+       text/scanner\
+       text/tabwriter\
+       text/template\
+       text/template/parse\
        time\
        unicode\
-       utf16\
-       utf8\
+       unicode/utf16\
+       unicode/utf8\
        websocket\
        ../cmd/cgo\
        ../cmd/godoc\
index d17e1c7cf1326cf4fd764727e1f026ecd7de49df..ad752a093ea4ae1c73256f1d35670f600c0a42d0 100755 (executable)
@@ -29,6 +29,7 @@ dirpat="$dirpat
 /^(big)$/
 /^(cmath)$/
 /^(csv)$/
+/^(exec)$/
 /^(exp\/template\/html)$/
 /^(gob)$/
 /^(http)/
@@ -40,9 +41,15 @@ dirpat="$dirpat
 /^(mail)$/
 /^(rand)$/
 /^(rpc)$/
+/^(scanner)$/
 /^(smtp)$/
 /^(syslog)$/
+/^(tabwriter)$/
 /^(url)$/
+/^(template)$/
+/^(template\/parse)$/
+/^(utf16)$/
+/^(utf8)$/
 /^(xml)$/
 "
 
@@ -67,6 +74,7 @@ for dir in $dirs; do (
                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;
@@ -78,10 +86,16 @@ for dir in $dirs; do (
                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;' |
similarity index 88%
rename from src/pkg/exec/Makefile
rename to src/pkg/os/exec/Makefile
index ba19d0e4d042c76fefb5b52c26e84d753666813e..702d6a38278670018e0f69353933cb020be6eb5b 100644 (file)
@@ -2,7 +2,7 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
-include ../../Make.inc
+include ../../../Make.inc
 
 TARG=exec
 GOFILES=\
@@ -28,4 +28,4 @@ GOFILES_plan9=\
 
 GOFILES+=$(GOFILES_$(GOOS))
 
-include ../../Make.pkg
+include ../../../Make.pkg
similarity index 100%
rename from src/pkg/exec/exec.go
rename to src/pkg/os/exec/exec.go
similarity index 78%
rename from src/pkg/scanner/Makefile
rename to src/pkg/text/scanner/Makefile
index db4752513a516174bcdb615e31e352a2b9c9cf4b..6b6e075dfeb917a1b7b686471ab2352f8091f59d 100644 (file)
@@ -2,10 +2,10 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
-include ../../Make.inc
+include ../../../Make.inc
 
 TARG=scanner
 GOFILES=\
        scanner.go\
 
-include ../../Make.pkg
+include ../../../Make.pkg
similarity index 79%
rename from src/pkg/tabwriter/Makefile
rename to src/pkg/text/tabwriter/Makefile
index bdc888784b3674d9d264ca841b86b06a763fd40c..70ad25cea7defd5ab7f2fa45200f616e400b16d0 100644 (file)
@@ -2,10 +2,10 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
-include ../../Make.inc
+include ../../../Make.inc
 
 TARG=tabwriter
 GOFILES=\
        tabwriter.go\
 
-include ../../Make.pkg
+include ../../../Make.pkg
similarity index 82%
rename from src/pkg/template/Makefile
rename to src/pkg/text/template/Makefile
index 730b287aff8018ad6fdbf6f68270511420bc7557..159b5a7c2fe41d57941707fcc6ae0073d244c0ab 100644 (file)
@@ -2,7 +2,7 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
-include ../../Make.inc
+include ../../../Make.inc
 
 TARG=template
 GOFILES=\
@@ -13,4 +13,4 @@ GOFILES=\
        parse.go\
        set.go\
 
-include ../../Make.pkg
+include ../../../Make.pkg
similarity index 79%
rename from src/pkg/template/parse/Makefile
rename to src/pkg/text/template/parse/Makefile
index fe65858097d9c3670a7dda1e95e6d6418bfbd5e2..39986b943cd5d672fd2c02362ba96cef7d0ea34c 100644 (file)
@@ -2,7 +2,7 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
-include ../../../Make.inc
+include ../../../../Make.inc
 
 TARG=template/parse
 GOFILES=\
@@ -11,4 +11,4 @@ GOFILES=\
        parse.go\
        set.go\
 
-include ../../../Make.pkg
+include ../../../../Make.pkg
similarity index 78%
rename from src/pkg/utf16/Makefile
rename to src/pkg/unicode/utf16/Makefile
index 8a564fb0fd46f9a5d011d1b6c51bb2051119203f..b60a5e73161a1e6fc4e81d8ab041bfd4f420c475 100644 (file)
@@ -2,10 +2,10 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
-include ../../Make.inc
+include ../../../Make.inc
 
 TARG=utf16
 GOFILES=\
        utf16.go\
 
-include ../../Make.pkg
+include ../../../Make.pkg
similarity index 79%
rename from src/pkg/utf8/Makefile
rename to src/pkg/unicode/utf8/Makefile
index b3574ba3b410c45143e69374309c9e2433c20fa4..4ffc31f08a83e2b0a109dd672253385c514e2e50 100644 (file)
@@ -2,11 +2,11 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
-include ../../Make.inc
+include ../../../Make.inc
 
 TARG=utf8
 GOFILES=\
        string.go\
        utf8.go\
 
-include ../../Make.pkg
+include ../../../Make.pkg