diff options
author | Phillip Warner <pc_warner@yahoo.com> | 2014-03-24 09:31:21 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-03-24 13:02:14 +0700 |
commit | ab09016092f9b536dd1992fcc16aae9d08c3e3e9 (patch) | |
tree | e6dd39bd857aed6f4a5c8d87f383b1c7c3c60f85 /office/docx2txt/doinst.sh | |
parent | fe35329a9cdeb8c8eb03623afa9171da4e0617bb (diff) | |
download | slackbuilds-ab09016092f9b536dd1992fcc16aae9d08c3e3e9.tar.gz slackbuilds-ab09016092f9b536dd1992fcc16aae9d08c3e3e9.tar.xz |
office/docx2txt: Added (docx to text converter).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/docx2txt/doinst.sh')
-rw-r--r-- | office/docx2txt/doinst.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/office/docx2txt/doinst.sh b/office/docx2txt/doinst.sh new file mode 100644 index 0000000000..0e4f91f5d0 --- /dev/null +++ b/office/docx2txt/doinst.sh @@ -0,0 +1,13 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # 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 + fi + # Otherwise, we leave the .new copy for the admin to consider... +} +config etc/docx2txt.config.new |