summaryrefslogtreecommitdiff
path: root/accessibility/speech-dispatcher/doinst.sh
diff options
context:
space:
mode:
authorEdward W. Koenig <kingbeowulf@gmail.com>2016-05-29 09:27:43 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-05-29 09:27:43 +0700
commit771b291532e4f7795f16335d60f3b820995d8155 (patch)
tree0d77ac58f48384a89c09391c8aabcc33338b0baf /accessibility/speech-dispatcher/doinst.sh
parent5511eafa1fd12b007a33c3e3a7a8e1960151be50 (diff)
downloadslackbuilds-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.sh9
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
+}