Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ntp/bin/ntpq Don't copy ntpq.1 to ntpq.8 before...



details:   https://anonhg.NetBSD.org/src/rev/facf4140b94f
branches:  trunk
changeset: 762754:facf4140b94f
user:      gdt <gdt%NetBSD.org@localhost>
date:      Sun Feb 27 12:42:44 2011 +0000

description:
Don't copy ntpq.1 to ntpq.8 before overwriting it.

"foo > bar" fails when bar is mode 444, and files copied from the
source tree should be expected to perhaps be read only.  However, the
copy should have been removed when the sed was added.  And, it never
should have been "@"; suppressing it made debugging this harder than
it should have been.

diffstat:

 external/bsd/ntp/bin/ntpq/Makefile |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r f7d497fe08a5 -r facf4140b94f external/bsd/ntp/bin/ntpq/Makefile
--- a/external/bsd/ntp/bin/ntpq/Makefile        Sun Feb 27 12:10:18 2011 +0000
+++ b/external/bsd/ntp/bin/ntpq/Makefile        Sun Feb 27 12:42:44 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.4 2011/02/26 19:17:38 plunky Exp $
+#      $NetBSD: Makefile,v 1.5 2011/02/27 12:42:44 gdt Exp $
 
 # NOGCCERROR=yes
 
@@ -24,7 +24,6 @@
 .PATH: ${DIST}
 
 ntpq.8:        ntpq.1
-       @cp $? $@
        ${_MKTARGET_BUILD}
        ${TOOL_SED} -e "s,NTPQ 1,NTPQ 8," $? > $@
 



Home | Main Index | Thread Index | Old Index