2022-04-05 06:48:20 +02:00
|
|
|
#!@TERMUX_PREFIX@/bin/sh
|
2018-09-10 00:42:26 +02:00
|
|
|
set -e
|
2022-04-05 06:48:20 +02:00
|
|
|
PREFIX="@TERMUX_PREFIX@"
|
2018-09-10 00:42:26 +02:00
|
|
|
|
|
|
|
if [ -d "${PREFIX}/share/fonts" ]; then
|
|
|
|
for dir in $(find "${PREFIX}/share/fonts" -mindepth 1 -type d -printf '%p/\n'); do
|
|
|
|
[ ! -d "${dir}" ] && continue
|
|
|
|
mkfontscale "${dir}"
|
|
|
|
mkfontdir "${dir}"
|
|
|
|
find "${dir}"fonts.scale -maxdepth 0 -size -3c -delete
|
|
|
|
find "${dir}"fonts.dir -maxdepth 0 -size -3c -delete
|
|
|
|
rmdir --ignore-fail-on-non-empty "${dir}"
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${1}" = "triggered" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|