1
0
mirror of https://github.com/golang/go synced 2024-11-26 00:07:57 -07:00

rename units -> units.txt.

add makefile rules to build a binary named units as a demo.

R=r
DELTA=1257  (659 added, 597 deleted, 1 changed)
OCL=34528
CL=34530
This commit is contained in:
Russ Cox 2009-09-10 14:47:10 -07:00
parent 8f2bf201d3
commit fc90fb8c81
4 changed files with 18 additions and 11 deletions

View File

@ -10,3 +10,8 @@ GOFILES=\
include $(GOROOT)/src/Make.cmd
units: goyacc units.y
goyacc units.y
$(GC) y.go
$(LD) -o units y.$O

View File

@ -21,6 +21,8 @@
// / 5.5474878e-13
// you have:
package main
import
(
"flag";
@ -294,7 +296,7 @@ main()
flag.Parse();
file = "units";
file = "units.txt";
if flag.NArg() > 0 {
file = flag.Arg(0);
}