config() {
  NEW="$1"
  OLD="$(dirname $NEW)/$(basename $NEW .new)"
  if [ ! -r $OLD ]; then
    mv $NEW $OLD
  elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
    rm $NEW
  fi
}

config etc/speech-dispatcher/speechd.conf.new
config etc/speech-dispatcher/clients/emacs.conf.new
config etc/speech-dispatcher/modules/espeak-generic.conf.new
config etc/speech-dispatcher/modules/cicero.conf.new
config etc/speech-dispatcher/modules/espeak.conf.new
config etc/speech-dispatcher/modules/dtk-generic.conf.new
config etc/speech-dispatcher/modules/pico-generic.conf.new
config etc/speech-dispatcher/modules/espeak-ng.conf.new
config etc/speech-dispatcher/modules/ibmtts.conf.new
config etc/speech-dispatcher/modules/epos-generic.conf.new
config etc/speech-dispatcher/modules/flite.conf.new
config etc/speech-dispatcher/modules/ivona.conf.new
config etc/speech-dispatcher/modules/espeak-mbrola-generic.conf.new
config etc/speech-dispatcher/modules/swift-generic.conf.new
config etc/speech-dispatcher/modules/llia_phon-generic.conf.new
config etc/speech-dispatcher/modules/festival.conf.new
( cd usr/lib64 ; rm -rf libspeechd.so )
( cd usr/lib64 ; ln -sf libspeechd.so.2.6.0 libspeechd.so )
( cd usr/lib64 ; rm -rf libspeechd.so.2 )
( cd usr/lib64 ; ln -sf libspeechd.so.2.6.0 libspeechd.so.2 )
