Skip to content

Commit d3b558e

Browse files
sertonixncopa
authored andcommitted
main/mkfontscale: clean fonts.dir and fonts.scale
1 parent 36ceb8d commit d3b558e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

main/mkfontscale/APKBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: Natanael Copa <[email protected]>
22
pkgname=mkfontscale
33
pkgver=1.2.3
4-
pkgrel=0
4+
pkgrel=1
55
pkgdesc="Scalable font index generator for X"
66
url="https://xorg.freedesktop.org/"
77
arch="all"

main/mkfontscale/mkfontscale.trigger

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ for i in "$@"; do
55
# encodings dir doesn't include fonts
66
*/encodings) continue;
77
esac
8-
mkfontdir "$i"
9-
mkfontscale "$i"
8+
[ -d "$i" ] || continue
9+
rm -f "$i"/fonts.dir "$i"/fonts.scale
10+
rmdir "$i" 2>/dev/null || {
11+
mkfontdir "$i"
12+
mkfontscale "$i"
13+
}
1014
done
11-

0 commit comments

Comments
 (0)