Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libz For the "update-sources" target, don't copy any...



details:   https://anonhg.NetBSD.org/src/rev/79959e5bcd41
branches:  trunk
changeset: 471919:79959e5bcd41
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu Apr 15 02:28:36 1999 +0000

description:
For the "update-sources" target, don't copy any src/lib/libz sources
that differ only in the first line (the NetBSD RCS header).

diffstat:

 sys/lib/libz/Makefile |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r fbe9d0c0fad6 -r 79959e5bcd41 sys/lib/libz/Makefile
--- a/sys/lib/libz/Makefile     Thu Apr 15 01:01:17 1999 +0000
+++ b/sys/lib/libz/Makefile     Thu Apr 15 02:28:36 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 1999/04/15 00:52:58 simonb Exp $
+#      $NetBSD: Makefile,v 1.9 1999/04/15 02:28:36 simonb Exp $
 
 LIB=   z
 MKPIC= no
@@ -29,6 +29,10 @@
        @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
 
 update-sources:
-       for file in ${LIBZSRCS} ${LIBZHDRS}; do \
-               cp ${.CURDIR}/../../../lib/libz/$$file ${.CURDIR}; \
+       -@for file in ${LIBZSRCS} ${LIBZHDRS}; do \
+               tail +2 ${.CURDIR}/../../../lib/libz/$$file > .tmp1.$$file ; \
+               tail +2 ${.CURDIR}/$$file > .tmp2.$$file ; \
+               cmp -s .tmp1.$$file .tmp2.$$file || ( echo Updating $$file ; \
+                 cp ${.CURDIR}/../../../lib/libz/$$file ${.CURDIR} ) ; \
+               rm .tmp1.$$file .tmp2.$$file ; \
        done



Home | Main Index | Thread Index | Old Index