NEW=etc/fonts/local.conf.ttf-bitstream-vera OLD="`dirname $NEW`/`basename $NEW .ttf-bitstream-vera`" # If there's no config file by that name, mv it over: if [ ! -r $OLD ]; then mv $NEW $OLD elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy rm $NEW else echo A sample of local.conf is available on /etc/fonts fi # Update the X font indexes: if [ -x /usr/X11R6/bin/fc-cache ]; then /usr/X11R6/bin/fc-cache -f fi # Make ttf cd /usr/X11R6/lib/TTF ttmkfdir > fonts.scale ln -sf fonts.scale fonts.dir