]> Cypherpunks repositories - gostls13.git/commitdiff
new dir structure for lib/go
authorRobert Griesemer <gri@golang.org>
Wed, 6 May 2009 01:38:45 +0000 (18:38 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 6 May 2009 01:38:45 +0000 (18:38 -0700)
R=r
DELTA=9298  (4760 added, 4536 deleted, 2 changed)
OCL=28317
CL=28317

14 files changed:
src/lib/Makefile
src/lib/go/Makefile [deleted file]
src/lib/go/ast/Makefile [new file with mode: 0644]
src/lib/go/ast/ast.go [moved from src/lib/go/ast.go with 100% similarity]
src/lib/go/doc/Makefile [new file with mode: 0644]
src/lib/go/doc/doc.go [moved from src/lib/go/doc.go with 100% similarity]
src/lib/go/parser/Makefile [new file with mode: 0644]
src/lib/go/parser/parser.go [moved from src/lib/go/parser.go with 100% similarity]
src/lib/go/parser/parser_test.go [moved from src/lib/go/parser_test.go with 100% similarity]
src/lib/go/scanner/Makefile [new file with mode: 0644]
src/lib/go/scanner/scanner.go [moved from src/lib/go/scanner.go with 100% similarity]
src/lib/go/scanner/scanner_test.go [moved from src/lib/go/scanner_test.go with 100% similarity]
src/lib/go/token/Makefile [new file with mode: 0644]
src/lib/go/token/token.go [moved from src/lib/go/token.go with 100% similarity]

index cbdc6790afa448ee1800b423950ec32e77c9239b..a03e354a605e9e8813841648bee52a00370bf50b 100644 (file)
@@ -111,8 +111,8 @@ strings.install: utf8.install
 testing.install: flag.install fmt.install
 
 fmt.install: io.install reflect.install strconv.install
-go.install: regexp.install sort.install strconv.install strings.install \
-       utf8.install unicode.install fmt.install
+go.install: fmt.install io.install once.install regexp.install sort.install \
+       strconv.install strings.install unicode.install utf8.install container/vector.install
 hash.install: os.install
 http.install: bufio.install io.install net.install os.install path.install strings.install log.install
 io.install: os.install sync.install
diff --git a/src/lib/go/Makefile b/src/lib/go/Makefile
deleted file mode 100644 (file)
index 5e56c93..0000000
+++ /dev/null
@@ -1,100 +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.
-
-# DO NOT EDIT.  Automatically generated by gobuild.
-# gobuild -m >Makefile
-
-D=/go
-
-O_arm=5
-O_amd64=6
-O_386=8
-OS=568vq
-
-O=$(O_$(GOARCH))
-GC=$(O)g -I_obj
-CC=$(O)c -FVw
-AS=$(O)a
-AR=6ar
-
-default: packages
-
-clean:
-       rm -rf *.[$(OS)] *.a [$(OS)].out _obj
-
-test: packages
-       gotest
-
-coverage: packages
-       gotest
-       6cov -g `pwd` | grep -v '_test\.go:'
-
-%.$O: %.go
-       $(GC) $*.go
-
-%.$O: %.c
-       $(CC) $*.c
-
-%.$O: %.s
-       $(AS) $*.s
-
-O1=\
-       token.$O\
-
-O2=\
-       scanner.$O\
-       ast.$O\
-
-O3=\
-       doc.$O\
-       parser.$O\
-
-
-phases: a1 a2 a3
-_obj$D/ast.a: phases
-_obj$D/doc.a: phases
-_obj$D/parser.a: phases
-_obj$D/scanner.a: phases
-_obj$D/token.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/token.a token.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/scanner.a scanner.$O
-       $(AR) grc _obj$D/ast.a ast.$O
-       rm -f $(O2)
-
-a3: $(O3)
-       $(AR) grc _obj$D/doc.a doc.$O
-       $(AR) grc _obj$D/parser.a parser.$O
-       rm -f $(O3)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/ast.a
-       $(AR) grc _obj$D/doc.a
-       $(AR) grc _obj$D/parser.a
-       $(AR) grc _obj$D/scanner.a
-       $(AR) grc _obj$D/token.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-$(O4): a3
-
-nuke: clean
-       rm -f $(GOROOT)/pkg$D/ast.a $(GOROOT)/pkg$D/doc.a $(GOROOT)/pkg$D/parser.a $(GOROOT)/pkg$D/scanner.a $(GOROOT)/pkg$D/token.a
-
-packages: _obj$D/ast.a _obj$D/doc.a _obj$D/parser.a _obj$D/scanner.a _obj$D/token.a
-
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
-       cp _obj$D/ast.a $(GOROOT)/pkg$D/ast.a
-       cp _obj$D/doc.a $(GOROOT)/pkg$D/doc.a
-       cp _obj$D/parser.a $(GOROOT)/pkg$D/parser.a
-       cp _obj$D/scanner.a $(GOROOT)/pkg$D/scanner.a
-       cp _obj$D/token.a $(GOROOT)/pkg$D/token.a
diff --git a/src/lib/go/ast/Makefile b/src/lib/go/ast/Makefile
new file mode 100644 (file)
index 0000000..e21b05d
--- /dev/null
@@ -0,0 +1,68 @@
+# 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.
+
+# DO NOT EDIT.  Automatically generated by gobuild.
+# gobuild -m >Makefile
+
+D=/go/
+
+O_arm=5
+O_amd64=6
+O_386=8
+OS=568vq
+
+O=$(O_$(GOARCH))
+GC=$(O)g -I_obj
+CC=$(O)c -FVw
+AS=$(O)a
+AR=6ar
+
+default: packages
+
+clean:
+       rm -rf *.[$(OS)] *.a [$(OS)].out _obj
+
+test: packages
+       gotest
+
+coverage: packages
+       gotest
+       6cov -g `pwd` | grep -v '_test\.go:'
+
+%.$O: %.go
+       $(GC) $*.go
+
+%.$O: %.c
+       $(CC) $*.c
+
+%.$O: %.s
+       $(AS) $*.s
+
+O1=\
+       ast.$O\
+
+
+phases: a1
+_obj$D/ast.a: phases
+
+a1: $(O1)
+       $(AR) grc _obj$D/ast.a ast.$O
+       rm -f $(O1)
+
+
+newpkg: clean
+       mkdir -p _obj$D
+       $(AR) grc _obj$D/ast.a
+
+$(O1): newpkg
+$(O2): a1
+
+nuke: clean
+       rm -f $(GOROOT)/pkg$D/ast.a
+
+packages: _obj$D/ast.a
+
+install: packages
+       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
+       cp _obj$D/ast.a $(GOROOT)/pkg$D/ast.a
similarity index 100%
rename from src/lib/go/ast.go
rename to src/lib/go/ast/ast.go
diff --git a/src/lib/go/doc/Makefile b/src/lib/go/doc/Makefile
new file mode 100644 (file)
index 0000000..5810be2
--- /dev/null
@@ -0,0 +1,68 @@
+# 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.
+
+# DO NOT EDIT.  Automatically generated by gobuild.
+# gobuild -m >Makefile
+
+D=/go/
+
+O_arm=5
+O_amd64=6
+O_386=8
+OS=568vq
+
+O=$(O_$(GOARCH))
+GC=$(O)g -I_obj
+CC=$(O)c -FVw
+AS=$(O)a
+AR=6ar
+
+default: packages
+
+clean:
+       rm -rf *.[$(OS)] *.a [$(OS)].out _obj
+
+test: packages
+       gotest
+
+coverage: packages
+       gotest
+       6cov -g `pwd` | grep -v '_test\.go:'
+
+%.$O: %.go
+       $(GC) $*.go
+
+%.$O: %.c
+       $(CC) $*.c
+
+%.$O: %.s
+       $(AS) $*.s
+
+O1=\
+       doc.$O\
+
+
+phases: a1
+_obj$D/doc.a: phases
+
+a1: $(O1)
+       $(AR) grc _obj$D/doc.a doc.$O
+       rm -f $(O1)
+
+
+newpkg: clean
+       mkdir -p _obj$D
+       $(AR) grc _obj$D/doc.a
+
+$(O1): newpkg
+$(O2): a1
+
+nuke: clean
+       rm -f $(GOROOT)/pkg$D/doc.a
+
+packages: _obj$D/doc.a
+
+install: packages
+       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
+       cp _obj$D/doc.a $(GOROOT)/pkg$D/doc.a
similarity index 100%
rename from src/lib/go/doc.go
rename to src/lib/go/doc/doc.go
diff --git a/src/lib/go/parser/Makefile b/src/lib/go/parser/Makefile
new file mode 100644 (file)
index 0000000..27cacfc
--- /dev/null
@@ -0,0 +1,68 @@
+# 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.
+
+# DO NOT EDIT.  Automatically generated by gobuild.
+# gobuild -m >Makefile
+
+D=/go/
+
+O_arm=5
+O_amd64=6
+O_386=8
+OS=568vq
+
+O=$(O_$(GOARCH))
+GC=$(O)g -I_obj
+CC=$(O)c -FVw
+AS=$(O)a
+AR=6ar
+
+default: packages
+
+clean:
+       rm -rf *.[$(OS)] *.a [$(OS)].out _obj
+
+test: packages
+       gotest
+
+coverage: packages
+       gotest
+       6cov -g `pwd` | grep -v '_test\.go:'
+
+%.$O: %.go
+       $(GC) $*.go
+
+%.$O: %.c
+       $(CC) $*.c
+
+%.$O: %.s
+       $(AS) $*.s
+
+O1=\
+       parser.$O\
+
+
+phases: a1
+_obj$D/parser.a: phases
+
+a1: $(O1)
+       $(AR) grc _obj$D/parser.a parser.$O
+       rm -f $(O1)
+
+
+newpkg: clean
+       mkdir -p _obj$D
+       $(AR) grc _obj$D/parser.a
+
+$(O1): newpkg
+$(O2): a1
+
+nuke: clean
+       rm -f $(GOROOT)/pkg$D/parser.a
+
+packages: _obj$D/parser.a
+
+install: packages
+       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
+       cp _obj$D/parser.a $(GOROOT)/pkg$D/parser.a
diff --git a/src/lib/go/scanner/Makefile b/src/lib/go/scanner/Makefile
new file mode 100644 (file)
index 0000000..fc1ecf9
--- /dev/null
@@ -0,0 +1,68 @@
+# 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.
+
+# DO NOT EDIT.  Automatically generated by gobuild.
+# gobuild -m >Makefile
+
+D=/go/
+
+O_arm=5
+O_amd64=6
+O_386=8
+OS=568vq
+
+O=$(O_$(GOARCH))
+GC=$(O)g -I_obj
+CC=$(O)c -FVw
+AS=$(O)a
+AR=6ar
+
+default: packages
+
+clean:
+       rm -rf *.[$(OS)] *.a [$(OS)].out _obj
+
+test: packages
+       gotest
+
+coverage: packages
+       gotest
+       6cov -g `pwd` | grep -v '_test\.go:'
+
+%.$O: %.go
+       $(GC) $*.go
+
+%.$O: %.c
+       $(CC) $*.c
+
+%.$O: %.s
+       $(AS) $*.s
+
+O1=\
+       scanner.$O\
+
+
+phases: a1
+_obj$D/scanner.a: phases
+
+a1: $(O1)
+       $(AR) grc _obj$D/scanner.a scanner.$O
+       rm -f $(O1)
+
+
+newpkg: clean
+       mkdir -p _obj$D
+       $(AR) grc _obj$D/scanner.a
+
+$(O1): newpkg
+$(O2): a1
+
+nuke: clean
+       rm -f $(GOROOT)/pkg$D/scanner.a
+
+packages: _obj$D/scanner.a
+
+install: packages
+       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
+       cp _obj$D/scanner.a $(GOROOT)/pkg$D/scanner.a
diff --git a/src/lib/go/token/Makefile b/src/lib/go/token/Makefile
new file mode 100644 (file)
index 0000000..b4e948f
--- /dev/null
@@ -0,0 +1,68 @@
+# 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.
+
+# DO NOT EDIT.  Automatically generated by gobuild.
+# gobuild -m >Makefile
+
+D=/go/
+
+O_arm=5
+O_amd64=6
+O_386=8
+OS=568vq
+
+O=$(O_$(GOARCH))
+GC=$(O)g -I_obj
+CC=$(O)c -FVw
+AS=$(O)a
+AR=6ar
+
+default: packages
+
+clean:
+       rm -rf *.[$(OS)] *.a [$(OS)].out _obj
+
+test: packages
+       gotest
+
+coverage: packages
+       gotest
+       6cov -g `pwd` | grep -v '_test\.go:'
+
+%.$O: %.go
+       $(GC) $*.go
+
+%.$O: %.c
+       $(CC) $*.c
+
+%.$O: %.s
+       $(AS) $*.s
+
+O1=\
+       token.$O\
+
+
+phases: a1
+_obj$D/token.a: phases
+
+a1: $(O1)
+       $(AR) grc _obj$D/token.a token.$O
+       rm -f $(O1)
+
+
+newpkg: clean
+       mkdir -p _obj$D
+       $(AR) grc _obj$D/token.a
+
+$(O1): newpkg
+$(O2): a1
+
+nuke: clean
+       rm -f $(GOROOT)/pkg$D/token.a
+
+packages: _obj$D/token.a
+
+install: packages
+       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
+       cp _obj$D/token.a $(GOROOT)/pkg$D/token.a