mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
379 B

  1. #!/bin/sh
  2. # mkfontscale has to be run before mkfontdir.
  3. print_status=1
  4. if any_touched '/usr/X11R7/lib/X11/fonts/' ; then
  5. for dir in /usr/X11R7/lib/X11/fonts/* ; do
  6. [ -d $dir ] || continue
  7. [ $print_status = 1 ] && \
  8. { echo "Running mkfontscale ..." ; print_status=0 ; }
  9. echo -n "$dir "
  10. mkfontscale $dir
  11. done
  12. [ $print_status = 0 ] && echo
  13. fi
  14. unset dir print_status