diff options
author | Edward W. Koenig <kingbeowulf@gmail.com> | 2016-05-29 09:27:43 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-05-29 09:27:43 +0700 |
commit | 771b291532e4f7795f16335d60f3b820995d8155 (patch) | |
tree | 0d77ac58f48384a89c09391c8aabcc33338b0baf /accessibility/speech-dispatcher/doinst.sh | |
parent | 5511eafa1fd12b007a33c3e3a7a8e1960151be50 (diff) | |
download | slackbuilds-771b291532e4f7795f16335d60f3b820995d8155.tar.gz |
accessibility/speech-dispatcher: Added (speech synthesizer).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'accessibility/speech-dispatcher/doinst.sh')
-rw-r--r-- | accessibility/speech-dispatcher/doinst.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/accessibility/speech-dispatcher/doinst.sh b/accessibility/speech-dispatcher/doinst.sh new file mode 100644 index 0000000000..d99dba1aac --- /dev/null +++ b/accessibility/speech-dispatcher/doinst.sh @@ -0,0 +1,9 @@ +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 +} |