Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc To install 0-sized files, check if the destination alrea...
details: https://anonhg.NetBSD.org/src/rev/b708419d52e9
branches: trunk
changeset: 762132:b708419d52e9
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Wed Feb 16 15:52:51 2011 +0000
description:
To install 0-sized files, check if the destination already has one.
This avoids unnecessary updates (== timestamp changes in METALOG).
diffstat:
etc/Makefile | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r feb06f4faee6 -r b708419d52e9 etc/Makefile
--- a/etc/Makefile Wed Feb 16 15:34:18 2011 +0000
+++ b/etc/Makefile Wed Feb 16 15:52:51 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.384 2010/12/27 03:38:52 christos Exp $
+# $NetBSD: Makefile,v 1.385 2011/02/16 15:52:51 uebayasi Exp $
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
# Environment variables without default values:
@@ -338,8 +338,10 @@
games games 664 /var/games/snake.log \
games games 664 /var/games/tetris.scores
${_MKMSG_INSTALL} ${DESTDIR}${file}
- ${ETC_INSTALL_FILE} -o ${owner} -g ${group} -m ${mode} \
- /dev/null ${DESTDIR}${file}
+ if [ ! -e ${DESTDIR}${file} -o -s ${DESTDIR}${file} ]; then \
+ ${ETC_INSTALL_FILE} -o ${owner} -g ${group} -m ${mode} \
+ /dev/null ${DESTDIR}${file}; \
+ else true; fi
.endfor
.for subdir in . defaults bluetooth iscsi mtree namedb pam.d powerd rc.d root skel ssh
${MAKEDIRTARGET} ${subdir} configinstall
Home |
Main Index |
Thread Index |
Old Index