mirror of
https://github.com/golang/go
synced 2024-11-20 03:04:40 -07:00
html,log,math: renamings
This is Go 1 package renaming CL #2. This one merely moves the source; the import strings will be changed after the next weekly release. exp/template/html -> html/template big -> math/big cmath -> math/cmplx rand -> math/rand syslog -> log/syslog The only edits are in Makefiles and deps.bash. Note that this CL moves exp/template/html out of exp. I decided to do that so all the renamings can be done together, even though the API (and that of template, for that matter) is still fluid. R=r, rsc CC=golang-dev https://golang.org/cl/5332053
This commit is contained in:
parent
53493a22fe
commit
5cb4a15320
@ -16,10 +16,8 @@ all: install
|
||||
DIRS=\
|
||||
archive/tar\
|
||||
archive/zip\
|
||||
big\
|
||||
bufio\
|
||||
bytes\
|
||||
cmath\
|
||||
compress/bzip2\
|
||||
compress/flate\
|
||||
compress/gzip\
|
||||
@ -89,7 +87,6 @@ DIRS=\
|
||||
exp/spdy\
|
||||
exp/sql\
|
||||
exp/sql/driver\
|
||||
exp/template/html\
|
||||
exp/types\
|
||||
expvar\
|
||||
flag\
|
||||
@ -107,6 +104,7 @@ DIRS=\
|
||||
hash/crc64\
|
||||
hash/fnv\
|
||||
html\
|
||||
html/template\
|
||||
http\
|
||||
http/cgi\
|
||||
http/fcgi\
|
||||
@ -125,8 +123,12 @@ DIRS=\
|
||||
io\
|
||||
io/ioutil\
|
||||
log\
|
||||
log/syslog\
|
||||
mail\
|
||||
math\
|
||||
math/big\
|
||||
math/cmplx\
|
||||
math/rand\
|
||||
mime\
|
||||
mime/multipart\
|
||||
net\
|
||||
@ -141,7 +143,6 @@ DIRS=\
|
||||
patch\
|
||||
path\
|
||||
path/filepath\
|
||||
rand\
|
||||
reflect\
|
||||
regexp\
|
||||
regexp/syntax\
|
||||
@ -159,7 +160,6 @@ DIRS=\
|
||||
sync\
|
||||
sync/atomic\
|
||||
syscall\
|
||||
syslog\
|
||||
tabwriter\
|
||||
template\
|
||||
template/parse\
|
||||
|
@ -26,9 +26,14 @@ dirpat=$(echo $dirs C | awk '{
|
||||
# Append old names of renamed packages. TODO: clean up after renaming.
|
||||
dirpat="$dirpat
|
||||
/^(asn1)$/
|
||||
/^(big)$/
|
||||
/^(cmath)$/
|
||||
/^(csv)$/
|
||||
/^(exp\/template\/html)$/
|
||||
/^(gob)$/
|
||||
/^(json)$/
|
||||
/^(rand)$/
|
||||
/^(syslog)$/
|
||||
/^(xml)$/
|
||||
"
|
||||
|
||||
@ -49,11 +54,16 @@ for dir in $dirs; do (
|
||||
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;' |
|
||||
sed 's;^csv.install$;encoding/csv.install;' |
|
||||
sed 's;^gob.install$;encoding/gob.install;' |
|
||||
sed 's;^json.install$;encoding/json.install;' |
|
||||
sed 's;^xml.install$;encoding/xml.install;' |
|
||||
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;^exp/template/html.install$;html/template.install;
|
||||
s;^gob.install$;encoding/gob.install;
|
||||
s;^json.install$;encoding/json.install;
|
||||
s;^syslog.install$;log/syslog.install;
|
||||
s;^rand.install$;math/rand.install;
|
||||
s;^xml.install$;encoding/xml.install;' |
|
||||
# TODO: end of renamings.
|
||||
sed 's;^C\.install;runtime/cgo.install;' |
|
||||
sort -u
|
||||
|
@ -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=exp/template/html
|
||||
GOFILES=\
|
||||
@ -19,4 +19,4 @@ GOFILES=\
|
||||
transition.go\
|
||||
url.go\
|
||||
|
||||
include ../../../../Make.pkg
|
||||
include ../../../Make.pkg
|
@ -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=syslog
|
||||
GOFILES=\
|
||||
syslog.go\
|
||||
syslog_unix.go\
|
||||
|
||||
include ../../Make.pkg
|
||||
include ../../../Make.pkg
|
@ -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=big
|
||||
GOFILES=\
|
||||
@ -15,4 +15,4 @@ GOFILES=\
|
||||
OFILES=\
|
||||
arith_$(GOARCH).$O\
|
||||
|
||||
include ../../Make.pkg
|
||||
include ../../../Make.pkg
|
@ -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=cmath
|
||||
|
||||
@ -22,4 +22,4 @@ GOFILES=\
|
||||
sqrt.go\
|
||||
tan.go\
|
||||
|
||||
include ../../Make.pkg
|
||||
include ../../../Make.pkg
|
@ -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=rand
|
||||
GOFILES=\
|
||||
@ -12,4 +12,4 @@ GOFILES=\
|
||||
rng.go\
|
||||
zipf.go\
|
||||
|
||||
include ../../Make.pkg
|
||||
include ../../../Make.pkg
|
Loading…
Reference in New Issue
Block a user