summaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-10-09 17:59:27 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-10-09 17:59:27 +0800
commit47eeb0f13825374c67af3f6d77d818e56e9c1a80 (patch)
tree93707f4c32af1be61d6d846bf5a3cf36f1e6108f /Mk
parente1843490cc7848ecaac4e9421ff0e1dfd98eac04 (diff)
downloadmarcuscom-ports-47eeb0f13825374c67af3f6d77d818e56e9c1a80.tar
marcuscom-ports-47eeb0f13825374c67af3f6d77d818e56e9c1a80.tar.gz
marcuscom-ports-47eeb0f13825374c67af3f6d77d818e56e9c1a80.tar.bz2
marcuscom-ports-47eeb0f13825374c67af3f6d77d818e56e9c1a80.tar.lz
marcuscom-ports-47eeb0f13825374c67af3f6d77d818e56e9c1a80.tar.xz
marcuscom-ports-47eeb0f13825374c67af3f6d77d818e56e9c1a80.tar.zst
marcuscom-ports-47eeb0f13825374c67af3f6d77d818e56e9c1a80.zip
Run gtk-update-icon-cache in post-install for !STAGE targets.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@18783 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.gnome.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk
index 66fa6f3a5..ffe3cabb0 100644
--- a/Mk/bsd.gnome.mk
+++ b/Mk/bsd.gnome.mk
@@ -1020,6 +1020,11 @@ gnome-post-install:
${ECHO_CMD} "@unexec ${LOCALBASE}/bin/gtk-update-icon-cache -q -f %D/$${i} 2>/dev/null || /usr/bin/true" \
>> ${TMPPLIST}; \
done
+.if ! defined(NO_STAGE)
+ @for i in `${GREP} "^share/icons/.*/" ${TMPPLIST} | ${CUT} -d / -f 1-3 | ${SORT} -u`; do \
+ ${LOCALBASE}/bin/gtk-update-icon-cache -q -f ${PREFIX}/$${i} 2>/dev/null || ${TRUE}; \
+ done
+.endif
@if test -f ${TMPPLIST}.icons1; then \
${CAT} ${TMPPLIST}.icons1 ${TMPPLIST} > ${TMPPLIST}.icons2; \
${RM} -f ${TMPPLIST}.icons1; \