@ -0,0 +1,6 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
if [ "`which fc-cache`" ] ; then |
||||
|
echo "Running fc-cache ..." |
||||
|
fc-cache -v |
||||
|
fi |
||||
@ -1 +1,9 @@ |
|||||
. "$base/package/xorg/xorg_config.sh" |
. "$base/package/xorg/xorg_config.sh" |
||||
|
|
||||
|
mkfontdir_postmake() |
||||
|
{ |
||||
|
echo "Installing mkfontdir postinstall Script ..." |
||||
|
cp -fv $confdir/x11-20-mkfontdir-postinstall.sh $root/etc/postinstall/ |
||||
|
} |
||||
|
|
||||
|
hook_add postmake 7 "mkfontdir_postmake" |
||||
@ -0,0 +1,16 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
# mkfontscale has to be run before mkfontdir. |
||||
|
|
||||
|
print_status=1 |
||||
|
if any_touched '/usr/X11R7/lib/X11/fonts/' ; then |
||||
|
for dir in /usr/X11R7/lib/X11/fonts/* ; do |
||||
|
[ -d $dir ] || continue |
||||
|
[ $print_status = 1 ] && \ |
||||
|
{ echo "Running mkfontdir ..." ; print_status=0 ; } |
||||
|
echo -n "$dir " |
||||
|
mkfontdir $dir |
||||
|
done |
||||
|
[ $print_status = 0 ] && echo |
||||
|
fi |
||||
|
unset dir print_status |
||||
@ -1 +1,9 @@ |
|||||
. "$base/package/xorg/xorg_config.sh" |
. "$base/package/xorg/xorg_config.sh" |
||||
|
|
||||
|
mkfontscale_postmake() |
||||
|
{ |
||||
|
echo "Installing mkfontscale postinstall Script ..." |
||||
|
cp -fv $confdir/x11-10-mkfontscale-postinstall.sh $root/etc/postinstall/ |
||||
|
} |
||||
|
|
||||
|
hook_add postmake 7 "mkfontscale_postmake" |
||||
@ -0,0 +1,16 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
# mkfontscale has to be run before mkfontdir. |
||||
|
|
||||
|
print_status=1 |
||||
|
if any_touched '/usr/X11R7/lib/X11/fonts/' ; then |
||||
|
for dir in /usr/X11R7/lib/X11/fonts/* ; do |
||||
|
[ -d $dir ] || continue |
||||
|
[ $print_status = 1 ] && \ |
||||
|
{ echo "Running mkfontscale ..." ; print_status=0 ; } |
||||
|
echo -n "$dir " |
||||
|
mkfontscale $dir |
||||
|
done |
||||
|
[ $print_status = 0 ] && echo |
||||
|
fi |
||||
|
unset dir print_status |
||||
@ -1,16 +0,0 @@ |
|||||
#!/bin/sh |
|
||||
|
|
||||
echo "Running mkfontscale / mkfontdir ..." |
|
||||
for dir in /usr/X11R7/lib/X11/fonts/* ; do |
|
||||
[ -d $dir ] || continue |
|
||||
echo -n "$dir " |
|
||||
mkfontscale $dir |
|
||||
mkfontdir $dir |
|
||||
done ; unset dir |
|
||||
echo |
|
||||
|
|
||||
if [ "`which fc-cache`" ] ; then |
|
||||
echo "Running fc-cache ..." |
|
||||
fc-cache -v |
|
||||
fi |
|
||||
|
|
||||