]>
git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - xorg-x11-font-utils/xorg-x11-fonts-update-dirs
2 # This script is used by the xorg-x11-fonts package in the %post stage for
3 # some fonts to generate the right encodings.
6 encodingsdir
="@DATADIR@/X11/fonts/encodings"
8 # some fonts need to skip mkfontscale, set to "yes" to skip
10 # some fonts need to run ttmkfdir, set to "yes" to run
14 echo "Need at least one parameter for font dir."
34 echo "Too many parameters."
42 if [ "$skip_fontscale" != "yes" ]; then
45 if [ "$need_ttmkfdir" = "yes" ]; then
52 if ! [ -z "$encodingsdir" ]; then
53 [ -d "$encodingsdir" ] || mkdir
-p "$encodingsdir"
56 mkfontscale
-n -e "$encodingsdir" -e "$encodingsdir/large"