Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc Install "obsolete" files only when necessary.
details: https://anonhg.NetBSD.org/src/rev/87de463716fc
branches: trunk
changeset: 762135:87de463716fc
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Wed Feb 16 16:22:13 2011 +0000
description:
Install "obsolete" files only when necessary.
diffstat:
etc/Makefile | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 44ae8bedbb63 -r 87de463716fc etc/Makefile
--- a/etc/Makefile Wed Feb 16 16:20:06 2011 +0000
+++ b/etc/Makefile Wed Feb 16 16:22:13 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.386 2011/02/16 16:20:06 uebayasi Exp $
+# $NetBSD: Makefile,v 1.387 2011/02/16 16:22:13 uebayasi Exp $
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
# Environment variables without default values:
@@ -378,6 +378,7 @@
OBSOLETE.files+= xbase xcomp xetc xfont xserver
.endif
+# XXX make "makeobsolete" set wise; then generate files respectively
install-obsolete-lists: .PHONY .MAKE
mkdir -p ${OBSOLETE.dir}
.if ${MKX11} != "no"
@@ -389,8 +390,11 @@
.endif
.for file in ${OBSOLETE.files}
${_MKMSG_INSTALL} ${DESTDIR}/var/db/obsolete/${file}
- ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
- ${OBSOLETE.dir}/${file} ${DESTDIR}/var/db/obsolete
+ if [ ! -e ${DESTDIR}/var/db/obsolete/${file} ] || \
+ ! cmp -s ${OBSOLETE.dir}/${file} ${DESTDIR}/var/db/obsolete/${file}; then \
+ ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
+ ${OBSOLETE.dir}/${file} ${DESTDIR}/var/db/obsolete; \
+ else true; fi
.endfor
Home |
Main Index |
Thread Index |
Old Index