]> Cypherpunks repositories - gostls13.git/commitdiff
move template into its own directory so it can have more files
authorRob Pike <r@golang.org>
Thu, 9 Apr 2009 06:43:02 +0000 (23:43 -0700)
committerRob Pike <r@golang.org>
Thu, 9 Apr 2009 06:43:02 +0000 (23:43 -0700)
R=rsc
DELTA=1421  (736 added, 685 deleted, 0 changed)
OCL=27249
CL=27249

src/lib/Makefile
src/lib/template/Makefile [new file with mode: 0644]
src/lib/template/template.go [moved from src/lib/template.go with 100% similarity]
src/lib/template/template_test.go [moved from src/lib/template_test.go with 100% similarity]
src/run.bash

index 4d98c62c6c1ac621bb04f0ef681d9dbab64c6883..6b485e3fdd1bcc38e36cde6536c30960a8cc99b4 100644 (file)
@@ -22,6 +22,7 @@ DIRS=\
        strconv\
        sync\
        tabwriter\
+       template\
        time\
        unicode\
 
@@ -36,7 +37,6 @@ FILES=\
        rand\
        sort\
        strings\
-       template\
        testing\
        utf8\
 
@@ -49,7 +49,6 @@ TEST=\
        once\
        sort\
        strings\
-       template\
        utf8\
 
 clean.dirs: $(addsuffix .dirclean, $(DIRS))
@@ -103,7 +102,6 @@ log.6: fmt.dirinstall io.dirinstall os.dirinstall time.dirinstall
 path.6: io.dirinstall
 once.6: sync.dirinstall
 strings.6: utf8.install
-template.6: bufio.install fmt.dirinstall io.dirinstall os.dirinstall reflect.dirinstall strings.install
 testing.6: flag.install fmt.dirinstall
 
 fmt.dirinstall: io.dirinstall reflect.dirinstall strconv.dirinstall
@@ -119,8 +117,9 @@ os.dirinstall: syscall.dirinstall once.install
 regexp.dirinstall: os.dirinstall
 reflect.dirinstall: strconv.dirinstall sync.dirinstall
 strconv.dirinstall: math.dirinstall os.dirinstall utf8.install
-tabwriter.dirinstall: os.dirinstall io.dirinstall container.dirinstall
-time.dirinstall: once.install os.dirinstall io.dirinstall
 sync.dirinstall:
 syscall.dirinstall: sync.dirinstall
+tabwriter.dirinstall: os.dirinstall io.dirinstall container.dirinstall
+template.dirinstall: bufio.install fmt.dirinstall io.dirinstall os.dirinstall reflect.dirinstall strings.install
+time.dirinstall: once.install os.dirinstall io.dirinstall
 
diff --git a/src/lib/template/Makefile b/src/lib/template/Makefile
new file mode 100644 (file)
index 0000000..856ba18
--- /dev/null
@@ -0,0 +1,55 @@
+# 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
+O=6
+GC=$(O)g
+CC=$(O)c -w
+AS=$(O)a
+AR=$(O)ar
+
+default: packages
+
+clean:
+       rm -f *.$O *.a $O.out
+
+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=\
+       template.$O\
+
+template.a: a1
+
+a1:    $(O1)
+       $(AR) grc template.a template.$O
+       rm -f $(O1)
+
+newpkg: clean
+       $(AR) grc template.a
+
+$(O1): newpkg
+
+nuke: clean
+       rm -f $(GOROOT)/pkg/template.a
+
+packages: template.a
+
+install: packages
+       cp template.a $(GOROOT)/pkg/template.a
+
index 221a21f1484269862fa2a3c91d0f337f9b4b5166..3053e7dc67e4f30fca1cb0e3e23adb842af35b8c 100755 (executable)
@@ -37,6 +37,7 @@ maketest \
        lib/regexp\
        lib/strconv\
        lib/tabwriter\
+       lib/template\
        lib/time\
        lib/unicode\