summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartyn Russell <martyn@lanedo.com>2009-10-09 12:05:34 +0100
committerMartyn Russell <martyn@lanedo.com>2009-10-09 12:05:34 +0100
commit23d8b61361520a22b265462d3a66d41f6d6dcbdd (patch)
treeba78b5eb6f00d9619ac3cc44015c2fbd584b290e
parent45b66bd3a5af658c3e72242acfe0b1c6b95525e7 (diff)
downloadtracker-23d8b61361520a22b265462d3a66d41f6d6dcbdd.tar.gz
Removed filters/ no longer used
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac3
-rw-r--r--filters/Makefile.am3
-rw-r--r--filters/application/Makefile.am28
-rwxr-xr-xfilters/application/csv_filter23
-rwxr-xr-xfilters/application/msword_filter20
-rwxr-xr-xfilters/application/pdf_filter3
-rwxr-xr-xfilters/application/tab-separated-values_filter23
-rwxr-xr-xfilters/application/vnd.ms-excel_filter23
-rwxr-xr-xfilters/application/vnd.oasis.opendocument.presentation-template_filter3
-rwxr-xr-xfilters/application/vnd.oasis.opendocument.presentation_filter3
-rwxr-xr-xfilters/application/vnd.oasis.opendocument.spreadsheet-template_filter3
-rwxr-xr-xfilters/application/vnd.oasis.opendocument.spreadsheet_filter3
-rwxr-xr-xfilters/application/vnd.oasis.opendocument.text-template_filter3
-rwxr-xr-xfilters/application/vnd.oasis.opendocument.text_filter3
-rwxr-xr-xfilters/application/vnd.stardivision.writer_filter3
-rwxr-xr-xfilters/application/vnd.sun.xml.calc.template_filter3
-rwxr-xr-xfilters/application/vnd.sun.xml.calc_filter3
-rwxr-xr-xfilters/application/vnd.sun.xml.draw_filter3
-rwxr-xr-xfilters/application/vnd.sun.xml.impress.template_filter3
-rwxr-xr-xfilters/application/vnd.sun.xml.impress_filter3
-rwxr-xr-xfilters/application/vnd.sun.xml.writer.template_filter3
-rwxr-xr-xfilters/application/vnd.sun.xml.writer_filter3
-rwxr-xr-xfilters/application/x-abiword_filter17
-rwxr-xr-xfilters/application/x-gnumeric_filter23
-rw-r--r--filters/text/Makefile.am15
-rwxr-xr-xfilters/text/csv_filter23
-rwxr-xr-xfilters/text/djvu_filter3
-rwxr-xr-xfilters/text/html_filter15
-rwxr-xr-xfilters/text/spreadsheet_filter23
-rwxr-xr-xfilters/text/tab-separated-values_filter23
-rwxr-xr-xfilters/text/x-comma-separated-values_filter23
-rwxr-xr-xfilters/text/x-tex_filter5
-rwxr-xr-xfilters/text/xml_filter17
34 files changed, 1 insertions, 356 deletions
diff --git a/Makefile.am b/Makefile.am
index 151feb851..b120c4890 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
include $(top_srcdir)/Makefile.decl
-SUBDIRS = data src filters docs po python utils
+SUBDIRS = data src docs po python utils
if HAVE_UNIT_TESTS
SUBDIRS += tests
diff --git a/configure.ac b/configure.ac
index 67c1cbbea..f6db0a758 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1361,9 +1361,6 @@ AC_CONFIG_FILES([
docs/reference/libtracker-common/version.xml
docs/reference/libtracker-miner/Makefile
docs/reference/libtracker-miner/version.xml
- filters/application/Makefile
- filters/Makefile
- filters/text/Makefile
Makefile
po/Makefile.in
python/deskbar-handler/Makefile
diff --git a/filters/Makefile.am b/filters/Makefile.am
deleted file mode 100644
index da0a52d3e..000000000
--- a/filters/Makefile.am
+++ /dev/null
@@ -1,3 +0,0 @@
-include $(top_srcdir)/Makefile.decl
-
-SUBDIRS = application text
diff --git a/filters/application/Makefile.am b/filters/application/Makefile.am
deleted file mode 100644
index 869348c6a..000000000
--- a/filters/application/Makefile.am
+++ /dev/null
@@ -1,28 +0,0 @@
-include $(top_srcdir)/Makefile.decl
-
-thumbappbindir = $(libdir)/tracker-$(TRACKER_API_VERSION)/filters/application
-
-thumbappbin_SCRIPTS = \
- pdf_filter \
- msword_filter \
- vnd.oasis.opendocument.presentation_filter \
- vnd.oasis.opendocument.presentation-template_filter \
- vnd.oasis.opendocument.spreadsheet_filter \
- vnd.oasis.opendocument.spreadsheet-template_filter \
- vnd.oasis.opendocument.text_filter \
- vnd.oasis.opendocument.text-template_filter \
- vnd.stardivision.writer_filter \
- vnd.sun.xml.calc_filter \
- vnd.sun.xml.calc.template_filter \
- vnd.sun.xml.impress_filter \
- vnd.sun.xml.impress.template_filter \
- vnd.sun.xml.writer_filter \
- vnd.sun.xml.writer.template_filter \
- x-abiword_filter \
- x-gnumeric_filter \
- vnd.sun.xml.draw_filter \
- csv_filter \
- vnd.ms-excel_filter \
- tab-separated-values_filter
-
-EXTRA_DIST = $(thumbappbin_SCRIPTS)
diff --git a/filters/application/csv_filter b/filters/application/csv_filter
deleted file mode 100755
index bd96c65e3..000000000
--- a/filters/application/csv_filter
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-tmpfile=`mktemp` || exit 1
-
-nice -n19 ssindex -i "$1" > "$tmpfile"
-
-nice -n19 xsltproc - "$tmpfile" <<EOF
-<?xml version="1.0"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="text"/>
- <xsl:output omit-xml-declaration="yes"/>
-
- <xsl:template match="*">
- <xsl:value-of select="."/>
- </xsl:template>
-
-</xsl:stylesheet>
-EOF
-
-rm "$tmpfile"
diff --git a/filters/application/msword_filter b/filters/application/msword_filter
deleted file mode 100755
index d57337884..000000000
--- a/filters/application/msword_filter
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-tmpdir=`mktemp -td tracker.msword_filter.XXXXXXXXXX` || exit 1
-tmpfile="$tmpdir"/tmpfile
-tmptxtfile="$tmpdir"/tmptxtfile
-
-cp "$1" "$tmpfile"
-
-# Change the working directory to $tmpdir which we can safely delete later.
-# Some distributions ship a version of wvText which extracts the image files
-# from the word document and places them in the current working directory.
-
-cd "$tmpdir"
-
-nice -n19 wvText "$tmpfile" "$tmptxtfile" > /dev/null 2>&1
-
-cat "$tmptxtfile"
-
-rm -rf "$tmpdir"
-
diff --git a/filters/application/pdf_filter b/filters/application/pdf_filter
deleted file mode 100755
index f40c54066..000000000
--- a/filters/application/pdf_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 pdftotext -enc UTF-8 -q -nopgbrk "$1" -
diff --git a/filters/application/tab-separated-values_filter b/filters/application/tab-separated-values_filter
deleted file mode 100755
index bd96c65e3..000000000
--- a/filters/application/tab-separated-values_filter
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-tmpfile=`mktemp` || exit 1
-
-nice -n19 ssindex -i "$1" > "$tmpfile"
-
-nice -n19 xsltproc - "$tmpfile" <<EOF
-<?xml version="1.0"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="text"/>
- <xsl:output omit-xml-declaration="yes"/>
-
- <xsl:template match="*">
- <xsl:value-of select="."/>
- </xsl:template>
-
-</xsl:stylesheet>
-EOF
-
-rm "$tmpfile"
diff --git a/filters/application/vnd.ms-excel_filter b/filters/application/vnd.ms-excel_filter
deleted file mode 100755
index bd96c65e3..000000000
--- a/filters/application/vnd.ms-excel_filter
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-tmpfile=`mktemp` || exit 1
-
-nice -n19 ssindex -i "$1" > "$tmpfile"
-
-nice -n19 xsltproc - "$tmpfile" <<EOF
-<?xml version="1.0"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="text"/>
- <xsl:output omit-xml-declaration="yes"/>
-
- <xsl:template match="*">
- <xsl:value-of select="."/>
- </xsl:template>
-
-</xsl:stylesheet>
-EOF
-
-rm "$tmpfile"
diff --git a/filters/application/vnd.oasis.opendocument.presentation-template_filter b/filters/application/vnd.oasis.opendocument.presentation-template_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.oasis.opendocument.presentation-template_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.oasis.opendocument.presentation_filter b/filters/application/vnd.oasis.opendocument.presentation_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.oasis.opendocument.presentation_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.oasis.opendocument.spreadsheet-template_filter b/filters/application/vnd.oasis.opendocument.spreadsheet-template_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.oasis.opendocument.spreadsheet-template_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.oasis.opendocument.spreadsheet_filter b/filters/application/vnd.oasis.opendocument.spreadsheet_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.oasis.opendocument.spreadsheet_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.oasis.opendocument.text-template_filter b/filters/application/vnd.oasis.opendocument.text-template_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.oasis.opendocument.text-template_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.oasis.opendocument.text_filter b/filters/application/vnd.oasis.opendocument.text_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.oasis.opendocument.text_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.stardivision.writer_filter b/filters/application/vnd.stardivision.writer_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.stardivision.writer_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.sun.xml.calc.template_filter b/filters/application/vnd.sun.xml.calc.template_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.sun.xml.calc.template_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.sun.xml.calc_filter b/filters/application/vnd.sun.xml.calc_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.sun.xml.calc_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.sun.xml.draw_filter b/filters/application/vnd.sun.xml.draw_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.sun.xml.draw_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.sun.xml.impress.template_filter b/filters/application/vnd.sun.xml.impress.template_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.sun.xml.impress.template_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.sun.xml.impress_filter b/filters/application/vnd.sun.xml.impress_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.sun.xml.impress_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.sun.xml.writer.template_filter b/filters/application/vnd.sun.xml.writer.template_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.sun.xml.writer.template_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/vnd.sun.xml.writer_filter b/filters/application/vnd.sun.xml.writer_filter
deleted file mode 100755
index b0e59382f..000000000
--- a/filters/application/vnd.sun.xml.writer_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 odt2txt "$1"
diff --git a/filters/application/x-abiword_filter b/filters/application/x-abiword_filter
deleted file mode 100755
index c571ce881..000000000
--- a/filters/application/x-abiword_filter
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-nice -n19 xsltproc - "$1" <<EOF
-<?xml version="1.0"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="text"/>
- <xsl:output omit-xml-declaration="yes"/>
-
- <xsl:template match="*">
- <xsl:value-of select="."/>
- </xsl:template>
-
-</xsl:stylesheet>
-EOF
diff --git a/filters/application/x-gnumeric_filter b/filters/application/x-gnumeric_filter
deleted file mode 100755
index bd96c65e3..000000000
--- a/filters/application/x-gnumeric_filter
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-tmpfile=`mktemp` || exit 1
-
-nice -n19 ssindex -i "$1" > "$tmpfile"
-
-nice -n19 xsltproc - "$tmpfile" <<EOF
-<?xml version="1.0"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="text"/>
- <xsl:output omit-xml-declaration="yes"/>
-
- <xsl:template match="*">
- <xsl:value-of select="."/>
- </xsl:template>
-
-</xsl:stylesheet>
-EOF
-
-rm "$tmpfile"
diff --git a/filters/text/Makefile.am b/filters/text/Makefile.am
deleted file mode 100644
index 2bd1645a3..000000000
--- a/filters/text/Makefile.am
+++ /dev/null
@@ -1,15 +0,0 @@
-include $(top_srcdir)/Makefile.decl
-
-filterbindir = $(libdir)/tracker-$(TRACKER_API_VERSION)/filters/text
-
-filterbin_SCRIPTS = \
- html_filter \
- xml_filter \
- x-tex_filter \
- djvu_filter \
- csv_filter \
- spreadsheet_filter \
- tab-separated-values_filter \
- x-comma-separated-values_filter
-
-EXTRA_DIST = $(filterbin_SCRIPTS)
diff --git a/filters/text/csv_filter b/filters/text/csv_filter
deleted file mode 100755
index bd96c65e3..000000000
--- a/filters/text/csv_filter
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-tmpfile=`mktemp` || exit 1
-
-nice -n19 ssindex -i "$1" > "$tmpfile"
-
-nice -n19 xsltproc - "$tmpfile" <<EOF
-<?xml version="1.0"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="text"/>
- <xsl:output omit-xml-declaration="yes"/>
-
- <xsl:template match="*">
- <xsl:value-of select="."/>
- </xsl:template>
-
-</xsl:stylesheet>
-EOF
-
-rm "$tmpfile"
diff --git a/filters/text/djvu_filter b/filters/text/djvu_filter
deleted file mode 100755
index 74d00f01d..000000000
--- a/filters/text/djvu_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 djvused "$1" -e 'print-pure-txt'
diff --git a/filters/text/html_filter b/filters/text/html_filter
deleted file mode 100755
index 186509e30..000000000
--- a/filters/text/html_filter
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-nice -n19 w3m \
- -o indent_incr=0 \
- -o multicol=false \
- -o no_cache=true \
- -o use_cookie=false \
- -o display_charset=utf8 \
- -o system_charset=utf8 \
- -o follow_locale=false \
- -o use_language_tag=true \
- -o ucs_conv=true \
- -T text/html \
- -dump \
- "$1"
diff --git a/filters/text/spreadsheet_filter b/filters/text/spreadsheet_filter
deleted file mode 100755
index bd96c65e3..000000000
--- a/filters/text/spreadsheet_filter
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-tmpfile=`mktemp` || exit 1
-
-nice -n19 ssindex -i "$1" > "$tmpfile"
-
-nice -n19 xsltproc - "$tmpfile" <<EOF
-<?xml version="1.0"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="text"/>
- <xsl:output omit-xml-declaration="yes"/>
-
- <xsl:template match="*">
- <xsl:value-of select="."/>
- </xsl:template>
-
-</xsl:stylesheet>
-EOF
-
-rm "$tmpfile"
diff --git a/filters/text/tab-separated-values_filter b/filters/text/tab-separated-values_filter
deleted file mode 100755
index bd96c65e3..000000000
--- a/filters/text/tab-separated-values_filter
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-tmpfile=`mktemp` || exit 1
-
-nice -n19 ssindex -i "$1" > "$tmpfile"
-
-nice -n19 xsltproc - "$tmpfile" <<EOF
-<?xml version="1.0"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="text"/>
- <xsl:output omit-xml-declaration="yes"/>
-
- <xsl:template match="*">
- <xsl:value-of select="."/>
- </xsl:template>
-
-</xsl:stylesheet>
-EOF
-
-rm "$tmpfile"
diff --git a/filters/text/x-comma-separated-values_filter b/filters/text/x-comma-separated-values_filter
deleted file mode 100755
index bd96c65e3..000000000
--- a/filters/text/x-comma-separated-values_filter
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-tmpfile=`mktemp` || exit 1
-
-nice -n19 ssindex -i "$1" > "$tmpfile"
-
-nice -n19 xsltproc - "$tmpfile" <<EOF
-<?xml version="1.0"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="text"/>
- <xsl:output omit-xml-declaration="yes"/>
-
- <xsl:template match="*">
- <xsl:value-of select="."/>
- </xsl:template>
-
-</xsl:stylesheet>
-EOF
-
-rm "$tmpfile"
diff --git a/filters/text/x-tex_filter b/filters/text/x-tex_filter
deleted file mode 100755
index 49b42f2e7..000000000
--- a/filters/text/x-tex_filter
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-UNTEX=`which untex`
-if [ -n "$UNTEX" ]; then nice -n19 $UNTEX "$1";
-else cat "$1";
-fi
diff --git a/filters/text/xml_filter b/filters/text/xml_filter
deleted file mode 100755
index c571ce881..000000000
--- a/filters/text/xml_filter
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-nice -n19 xsltproc - "$1" <<EOF
-<?xml version="1.0"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="text"/>
- <xsl:output omit-xml-declaration="yes"/>
-
- <xsl:template match="*">
- <xsl:value-of select="."/>
- </xsl:template>
-
-</xsl:stylesheet>
-EOF