mkfontscale/mkfontscale.script
2024-04-15 22:53:16 +08:00

10 lines
219 B
Bash

#!/bin/bash
sort -r | while read -r d; do
[[ -d $d ]] || continue
mkfontscale "$d"
mkfontdir "$d"
find "$d"fonts.{scale,dir} -maxdepth 0 -size -3c -delete
rmdir --ignore-fail-on-non-empty "$d"
done