diff options
| author | Russ Cox <rsc@golang.org> | 2009-03-30 00:12:56 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-03-30 00:12:56 -0700 |
| commit | a2cbc2998d031fb1768c8a40037c558b5411b1e8 (patch) | |
| tree | 3ced5c02135d9483c695a2297f59f4fe21f282d0 /src/cmd | |
| parent | 0d3a043de9b544ee3fca10fd1070a58f973161c4 (diff) | |
| download | go-a2cbc2998d031fb1768c8a40037c558b5411b1e8.tar.xz | |
don't write cmp's output to the c file.
cope better with p4 not found.
R=r
DELTA=3 (0 added, 0 deleted, 3 changed)
OCL=26877
CL=26879
Diffstat (limited to 'src/cmd')
| -rwxr-xr-x | src/cmd/gc/mkbuiltin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/gc/mkbuiltin b/src/cmd/gc/mkbuiltin index 5d0d73cc40..e0c29c1bb4 100755 --- a/src/cmd/gc/mkbuiltin +++ b/src/cmd/gc/mkbuiltin @@ -19,10 +19,10 @@ rm -f _builtin.c # in end user Go repositories. case "$USER" in ken | r | rsc) - if ! cmp _builtin.c builtin.c.boot + if ! cmp _builtin.c builtin.c.boot >/dev/null 2>/dev/null then - PATH=$PATH:/usr/local/bin - p4 open builtin.c.boot >/dev/null + PATH=$PATH:/usr/local/bin # find p4 on OS X + p4 open builtin.c.boot >/dev/null 2>/dev/null || true # if p4 is missing, so be it cp _builtin.c builtin.c.boot fi esac |
