Commit a2cbc299 authored by Russ Cox's avatar Russ Cox

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
parent 0d3a043d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment