From ab09016092f9b536dd1992fcc16aae9d08c3e3e9 Mon Sep 17 00:00:00 2001 From: Phillip Warner Date: Mon, 24 Mar 2014 09:31:21 +0700 Subject: office/docx2txt: Added (docx to text converter). Signed-off-by: Willy Sudiarto Raharjo --- office/docx2txt/doinst.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 office/docx2txt/doinst.sh (limited to 'office/docx2txt/doinst.sh') diff --git a/office/docx2txt/doinst.sh b/office/docx2txt/doinst.sh new file mode 100644 index 0000000000000..0e4f91f5d0fed --- /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 -- cgit v1.2.3