xref: /OK3568_Linux_fs/yocto/scripts/postinst-intercepts/update_font_cache (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun#!/bin/sh
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# SPDX-License-Identifier: MIT
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun
6*4882a593Smuzhiyunset -e
7*4882a593Smuzhiyun
8*4882a593Smuzhiyunrm -f $D${fontconfigcachedir}/CACHEDIR.TAG
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunPSEUDO_UNLOAD=1 ${binprefix}qemuwrapper -L $D -E ${fontconfigcacheenv} $D${libexecdir}/${binprefix}fc-cache --sysroot=$D --system-only ${fontconfigcacheparams}
11*4882a593Smuzhiyun
12*4882a593Smuzhiyunchown -R root:root $D${fontconfigcachedir}
13*4882a593Smuzhiyunfind $D -type f -name .uuid -exec chown root:root '{}' +
14