Projects
Mega:24.03:SP1:Everything
xorg-x11-font-utils
_service:tar_scm:xorg-x11-fonts-update-dirs
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:xorg-x11-fonts-update-dirs of Package xorg-x11-font-utils
#!/bin/sh # This script is used by the xorg-x11-fonts package in the %post stage for # some fonts to generate the right encodings. fontdir="" encodingsdir="@DATADIR@/X11/fonts/encodings" # some fonts need to skip mkfontscale, set to "yes" to skip skip_fontscale="" # some fonts need to run ttmkfdir, set to "yes" to run need_ttmkfdir="" if [ $# -lt 1 ]; then echo "Need at least one parameter for font dir." exit 1 fi while [ $# != 0 ]; do case $1 in --skip-fontscale) skip_fontscale="yes" ;; --need-ttmkfdir) need_ttmkfdir="yes" ;; --encodingsdir) shift encodingsdir="$1" ;; *) fontdir="$1" if [ $# != 1 ]; then echo "Too many parameters." exit 1 fi ;; esac shift done if [ "$skip_fontscale" != "yes" ]; then mkfontscale $fontdir fi if [ "$need_ttmkfdir" = "yes" ]; then ttmkfdir -d $fontdir -o "$fontdir/fonts.scale" fi mkfontdir $fontdir fc-cache $fontdir if ! [ -z "$encodingsdir" ]; then [ -d "$encodingsdir" ] || mkdir -p "$encodingsdir" [ -d "$encodingsdir/large" ] || mkdir -p "$encodingsdir/large" oldpwd=$(pwd) cd "$encodingsdir" mkfontscale -n -e "$encodingsdir" -e "$encodingsdir/large" cd ${oldpwd} fi
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2