From 9bb65fd97089020e7e1b571b3516ec1fe60e10cd Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Mon, 4 Jun 2018 10:35:48 +0200 Subject: [PATCH] get rid of rclwpd which was not used (wpd2html has been executed directly for who knows how many years) --- src/Makefile.am | 1 - src/filters/rclwpd | 87 ---------------------------------------------- 2 files changed, 88 deletions(-) delete mode 100755 src/filters/rclwpd diff --git a/src/Makefile.am b/src/Makefile.am index 42f32f39..60c35ccc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -671,7 +671,6 @@ filters/rcltext.py \ filters/rcluncomp \ filters/rcluncomp.py \ filters/rclwar \ -filters/rclwpd \ filters/rclxls.py \ filters/rclxml.py \ filters/rclxmp.py \ diff --git a/src/filters/rclwpd b/src/filters/rclwpd deleted file mode 100755 index 687e6359..00000000 --- a/src/filters/rclwpd +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/sh -# @(#$Id: rclwpd,v 1.1 2007-08-26 13:34:59 dockes Exp $ (C) 2004 J.F.Dockes -# Some inspiration from estraier -#================================================================ -# convert wordperfect documents to html, by executing the wpd2html program: -# http://libwpd.sourceforge.net/download.html -#================================================================ - -# set variables -LANG=C ; export LANG -LC_ALL=C ; export LC_ALL -progname="rclwpd" -filetype=wpd - - - -#RECFILTCOMMONCODE -############################################################################## -# !! Leave the previous line unmodified!! Code imported from the -# recfiltcommon file - -# Utility code common to all shell filters. This could be sourced at run -# time, but it's slightly more efficient to include the code in the -# filters at build time (with a sed script). - -# Describe error in a way that can be interpreted by our caller -senderror() -{ - echo RECFILTERROR $* - # Also alert on stderr just in case - echo ":2:$progname::: $*" 1>&2 - exit 1 -} - -iscmd() -{ - cmd=$1 - case $cmd in - */*) - if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;; - *) - oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs - for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && return 0;done - return 1 ;; - esac -} - -checkcmds() -{ - for cmd in $*;do - if iscmd $cmd - then - a=1 - else - senderror HELPERNOTFOUND $cmd - fi - done -} - -# show help message -if test $# -ne 1 -o "$1" = "--help" -then - echo "Convert a $filetype file to HTML text for Recoll indexing." - echo "Usage: $progname [infile]" - exit 1 -fi - -infile="$1" - -# check the input file existence (may be '-' for stdin) -if test "X$infile" != X- -a ! -f "$infile" -then - senderror INPUTNOSUCHFILE "$infile" -fi - -# protect access to our temp files and directories -umask 77 - -############################################################################## -# !! Leave the following line unmodified ! -#ENDRECFILTCOMMONCODE - -checkcmds wpd2html - -# output the result. wpd2html output doesn't seem to need any adjustment? - -wpd2html "$infile" 2> /dev/null