mirror of
https://github.com/golang/go
synced 2024-11-22 23:50:03 -07:00
mv src/lib to src/pkg
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
This commit is contained in:
parent
bf5c0c957c
commit
d90e7cbac6
@ -5,7 +5,7 @@
|
||||
|
||||
rm -rf $GOROOT/pkg/[0-9a-zA-Z_]*
|
||||
rm -f $GOROOT/lib/*.[6a]
|
||||
for i in lib9 libbio libmach_amd64 libregexp cmd lib
|
||||
for i in lib9 libbio libmach_amd64 libregexp cmd pkg
|
||||
do
|
||||
cd $i
|
||||
case $i in
|
||||
|
@ -103,14 +103,14 @@ func (a FileArray) Swap(i, j int) {
|
||||
a[i], a[j] = a[j], a[i]
|
||||
}
|
||||
|
||||
// If current directory is under $GOROOT/src/lib, return the
|
||||
// If current directory is under $GOROOT/src/pkg, return the
|
||||
// path relative to there. Otherwise return "".
|
||||
func PkgDir() string {
|
||||
goroot, err := os.Getenv("GOROOT");
|
||||
if err != nil || goroot == "" {
|
||||
return ""
|
||||
}
|
||||
srcroot := path.Clean(goroot + "/src/lib/");
|
||||
srcroot := path.Clean(goroot + "/src/pkg/");
|
||||
pwd, err1 := os.Getenv("PWD"); // TODO(rsc): real pwd
|
||||
if err1 != nil || pwd == "" {
|
||||
return ""
|
||||
|
@ -1,5 +0,0 @@
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Nothing to see here.
|
@ -1,5 +0,0 @@
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Nothing to see here.
|
@ -1,5 +0,0 @@
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Nothing to see here
|
@ -1,5 +0,0 @@
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Nothing to see here
|
@ -18,7 +18,7 @@ rm -f $HOME/bin/quietgcc
|
||||
cp quietgcc.bash $HOME/bin/quietgcc
|
||||
chmod +x $HOME/bin/quietgcc
|
||||
|
||||
for i in lib9 libbio libmach_amd64 libregexp cmd lib cmd/gobuild
|
||||
for i in lib9 libbio libmach_amd64 libregexp cmd pkg cmd/gobuild
|
||||
do
|
||||
echo; echo; echo %%%% making $i %%%%; echo
|
||||
cd $i
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user