Module Name: src
Committed By: christos
Date: Wed Mar 6 17:32:51 UTC 2013
Modified Files:
src/share/zoneinfo: Makefile
Log Message:
- create the directories if missing
- use $() instead of ``
To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/share/zoneinfo/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/zoneinfo/Makefile
diff -u src/share/zoneinfo/Makefile:1.43 src/share/zoneinfo/Makefile:1.44
--- src/share/zoneinfo/Makefile:1.43 Fri Apr 10 12:16:12 2009
+++ src/share/zoneinfo/Makefile Wed Mar 6 12:32:51 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2009/04/10 16:16:12 apb Exp $
+# $NetBSD: Makefile,v 1.44 2013/03/06 17:32:51 christos Exp $
.include <bsd.own.mk>
@@ -97,9 +97,16 @@ afterinstall: ${DATA} ${REDO} ${TABDATA}
find . -type f -print | xargs ${TOOL_STAT} -qf '%d,%i %N' | sort \
| while read devino tzfile; do \
destfile=${DESTDIR}${TZDIR}/$${tzfile#./}; \
+ destdir=$$(dirname $${destfile}); \
+ if [ ! -d "$$destdir" ]; then \
+ ${_MKSHMSG_INSTALL} $$destdir; \
+ ${_MKSHECHO} ${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} \
+ $$destdir; \
+ ${INSTALL_DIR} -o ${BINOWN} -g ${BINGRP} $$destdir; \
+ fi; \
if [ "$$devino" = "$$lastdevino" ]; then \
- if ldevino=`${TOOL_STAT} -qf '%d %i' $$lastfile` && \
- tdevino=`${TOOL_STAT} -qf '%d %i' $$destfile` && \
+ if ldevino=$$(${TOOL_STAT} -qf '%d %i' $$lastfile) && \
+ tdevino=$$(${TOOL_STAT} -qf '%d %i' $$destfile) && \
[ "$$ldevino" = "$$tdevino" ]; then \
continue; \
fi; \