#Added by slkbuild 1.2 dotnew() { NEW="${1}.new" OLD="$1" if [ ! -e $OLD ]; then mv $NEW $OLD elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then rm $NEW fi } dotnew etc/RHVoice/RHVoice.conf-en dotnew etc/RHVoice/RHVoice.conf-ru dotnew etc/RHVoice/RHVoice.conf-uk doinst () { rm -f /etc/RHVoice/RHVoice-ru.conf; rm -f /etc/RHVoice/RHVoice-ua.conf; case $LANG in en*) cp etc/RHVoice/RHVoice.conf-en etc/RHVoice/RHVoice.conf.new ;; ru*) cp etc/RHVoice/RHVoice.conf-ru etc/RHVoice/RHVoice.conf.new ;; uk*) cp etc/RHVoice/RHVoice.conf-uk etc/RHVoice/RHVoice.conf.new ;; *) cp etc/RHVoice/RHVoice.conf-en etc/RHVoice/RHVoice.conf.new ;; esac; if [ ! -r etc/RHVoice/RHVoice.conf ]; then mv etc/RHVoice/RHVoice.conf.new etc/RHVoice/RHVoice.conf; else if [ "$(md5sum etc/RHVoice/RHVoice.conf.new)" = "$(md5sum etc/RHVoice/RHVoice.conf)" ]; then rm etc/RHVoice.conf.new; fi; fi } doinst