#!/bin/sh
 #
 ## -------- convert upper to lower case ---------
 
 ls * | while read f
  do
    if [ -f "$f" ]; then
      if [ "$f" != "`echo \"$f\" | tr A-Z a-z`" ]; then
       #Note that 'This' will overwrite 'this'!
       mv -iv "$f" "`echo \"$f\" | tr A-Z a-z`"
      fi
    fi
  done
 
# Note the punctuation -- the backquotes are
# important! Remove any spaces from font names
# too.  Once the TrueType fonts are properly
# installed, you must create both fonts.dir
# and fonts.scale files. The following commands
# do this:
 
# If you have SuSE 8.x you might need to use
# the following command instead of using the
# mkfontscale command.

ttmkfdir -o fonts.scale

# The ttmkfdir command is not included in SuSE 9.0
# so in that case you need to use the mkfontscale
# command instead.

#mkfontscale

mkfontdir

# This script needs to be placed in the
# directory with the font files.  Give it a
# name with lower-case letters because it is
# going to rename itself to lower-case anyway.

# If, when you execute the script, it gives you
# some cryptic error message for line 7, to the
# effect of &quot;binary operator expected&quot; then 
# check that none of your font file names have
# spaces in them.
 
# eof

