svn commit: r320362 - head/share/zoneinfo
Edward Tomasz Napierala
trasz at FreeBSD.org
Mon Jun 26 15:40:26 UTC 2017
Author: trasz
Date: Mon Jun 26 15:40:24 2017
New Revision: 320362
URL: https://svnweb.freebsd.org/changeset/base/320362
Log:
Provide visual feedback when timezone files are installed.
After r320003 it wasn't being shown in any way.
Submitted by: bdrewery
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D11154
Modified:
head/share/zoneinfo/Makefile
Modified: head/share/zoneinfo/Makefile
==============================================================================
--- head/share/zoneinfo/Makefile Mon Jun 26 15:23:12 2017 (r320361)
+++ head/share/zoneinfo/Makefile Mon Jun 26 15:40:24 2017 (r320362)
@@ -83,14 +83,19 @@ zoneinfo: yearistype ${TDATA}
zic -D -d ${TZBUILDDIR} -p ${POSIXRULES} -m ${NOBINMODE} \
${LEAPFILE} -y ${.OBJDIR}/yearistype ${TZFILES}
+.if make(*install*)
+TZS!= cd ${TZBUILDDIR} && find -s * -type f
+.endif
+
beforeinstall: install-zoneinfo
install-zoneinfo:
mkdir -p ${DESTDIR}/usr/share/zoneinfo
cd ${DESTDIR}/usr/share/zoneinfo; mkdir -p ${TZBUILDSUBDIRS}
- cd ${TZBUILDDIR} && \
- find -s * -type f -exec ${INSTALL} ${TAG_ARGS} \
+.for f in ${TZS}
+ ${INSTALL} ${TAG_ARGS} \
-o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
- \{} ${DESTDIR}/usr/share/zoneinfo/\{} \;
+ ${TZBUILDDIR:C,^${.OBJDIR}/,,}/${f} ${DESTDIR}/usr/share/zoneinfo/${f}
+.endfor
${INSTALL} ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${CONTRIBDIR}/zone.tab ${DESTDIR}/usr/share/zoneinfo/
More information about the svn-src-all
mailing list