Source-Changes-HG archive

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

[src/trunk]: src use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the...



details:   https://anonhg.NetBSD.org/src/rev/2d7aee01aa12
branches:  trunk
changeset: 532641:2d7aee01aa12
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Jun 11 15:50:05 2002 +0000

description:
use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog

diffstat:

 etc/Makefile                              |  14 +++++++-------
 gnu/usr.bin/texinfo/install-info/Makefile |   4 ++--
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (44 lines):

diff -r 33b4916c038c -r 2d7aee01aa12 etc/Makefile
--- a/etc/Makefile      Tue Jun 11 15:22:57 2002 +0000
+++ b/etc/Makefile      Tue Jun 11 15:50:05 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.221 2002/05/30 21:40:47 itojun Exp $
+#      $NetBSD: Makefile,v 1.222 2002/06/11 16:12:51 lukem Exp $
 #      from: @(#)Makefile      8.7 (Berkeley) 5/25/95
 
 # Environment variables without default values:
@@ -141,12 +141,12 @@
        ${PWD_MKDB} -p ${TARGET_ENDIANNESS} -d ${DESTDIR}/ \
                ${DESTDIR}/etc/master.passwd
 .if defined(UNPRIVED)
-       echo "${DESTDIR}/etc/passwd type=file mode=0644 uname=root gname=wheel" \
-               | sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG}
-       echo "${DESTDIR}/etc/pwd.db type=file mode=0644 uname=root gname=wheel" \
-               | sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG}
-       echo "${DESTDIR}/etc/spwd.db type=file mode=0600 uname=root gname=wheel" \
-               | sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG}
+       ( \
+           echo "/etc/passwd type=file mode=0644 uname=root gname=wheel"; \
+           echo "/etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \
+           echo "/etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \
+       ) | \
+           sed -e "s|^/|./${DESTDIR}/|g" -e "s|//|/|g" | ${CAT} -l >>${METALOG}
 .endif # UNPRIVED
        ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 555 \
             MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
diff -r 33b4916c038c -r 2d7aee01aa12 gnu/usr.bin/texinfo/install-info/Makefile
--- a/gnu/usr.bin/texinfo/install-info/Makefile Tue Jun 11 15:22:57 2002 +0000
+++ b/gnu/usr.bin/texinfo/install-info/Makefile Tue Jun 11 15:50:05 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 2002/03/01 06:03:20 jmc Exp $
+#      $NetBSD: Makefile,v 1.6 2002/06/11 15:50:05 lukem Exp $
 
 PROG=          install-info
 SRCS=          install-info.c
@@ -10,5 +10,5 @@
 infodir-meta:
 .if defined(UNPRIVED) && (${MKINFO} != "no")
        echo "${DESTDIR}/usr/share/info/dir type=file mode=0644 uname=root gname=wheel" | \
-               sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG}
+               sed -e 's|^/|./|g' -e 's|//|/|g' | ${CAT} -l >>${METALOG}
 .endif



Home | Main Index | Thread Index | Old Index