summaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-11-26 06:06:36 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-11-26 06:06:36 +0800
commitb3ca8f7f6d7183e9a7511b7bd9548e9c1b0812ff (patch)
treefc336cb031f2dc153b16d05efdaad97e0713a810 /Mk
parent0e07efa86324b98a3f975da63a96a66aaaf7f371 (diff)
downloadmarcuscom-ports-b3ca8f7f6d7183e9a7511b7bd9548e9c1b0812ff.tar
marcuscom-ports-b3ca8f7f6d7183e9a7511b7bd9548e9c1b0812ff.tar.gz
marcuscom-ports-b3ca8f7f6d7183e9a7511b7bd9548e9c1b0812ff.tar.bz2
marcuscom-ports-b3ca8f7f6d7183e9a7511b7bd9548e9c1b0812ff.tar.lz
marcuscom-ports-b3ca8f7f6d7183e9a7511b7bd9548e9c1b0812ff.tar.xz
marcuscom-ports-b3ca8f7f6d7183e9a7511b7bd9548e9c1b0812ff.tar.zst
marcuscom-ports-b3ca8f7f6d7183e9a7511b7bd9548e9c1b0812ff.zip
- One more name change auto-plist -> auto-rmdir, name credit goes to mezz
- Make output quiet I think we're ready for some real testing when you guys update ports =) git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7954 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk9
1 files changed, 4 insertions, 5 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 4fb187574..5cd85887f 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1780,7 +1780,7 @@ LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
.endif
.if defined(USE_GETTEXT)
-. if ${USE_GETTEXT:L} == "yes" || ${USE_GETTEXT:L} == "auto-plist"
+. if ${USE_GETTEXT:L} == "yes" || ${USE_GETTEXT:L} == "auto-rmdir"
LIB_DEPENDS+= intl:${PORTSDIR}/devel/gettext
. else
LIB_DEPENDS+= intl.${USE_GETTEXT}:${PORTSDIR}/devel/gettext
@@ -5436,13 +5436,12 @@ generate-plist:
.for dir in ${PLIST_DIRS}
@${ECHO_CMD} ${dir} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} | ${SED} -e 's,^,@dirrm ,' >> ${TMPPLIST}
.endfor
-.if defined(USE_GETTEXT) && ${USE_GETTEXT} == "auto-plist"
+.if defined(USE_GETTEXT) && ${USE_GETTEXT} == "auto-rmdir"
@${MKDIR} ${WRKDIR}/emptydir
- @> ${WKRDIR}/.locale.mtree
@${MTREE_CMD} -f ${MTREE_FILE} -L -p ${WRKDIR}/emptydir | ${GREP} "share/locale/.*/LC_MESSAGES" \
- | ${SED} -e 's|./||; s| missing||' >> ${WRKDIR}/.locale.mtree
+ | ${SED} -e 's|./||; s| missing||' > ${WRKDIR}/.locale.mtree
. for a in 1-4 1-3
- for i in `${GREP} "^share/locale/.*/LC_MESSAGES/.*\.mo" ${TMPPLIST} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} | ${CUT} -d / -f ${a} | ${SORT} -r`; do \
+ @for i in `${GREP} "^share/locale/.*/LC_MESSAGES/.*\.mo" ${TMPPLIST} | ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} | ${CUT} -d / -f ${a} | ${SORT} -r`; do \
if [ "$${i}//" != "`${GREP} -o "$${i}//" ${WRKDIR}/.locale.mtree`" ]; then \
${ECHO_CMD} "@unexec rmdir %D/$${i} 2>/dev/null || true" >> ${TMPPLIST} ; \
fi \