summaryrefslogtreecommitdiff
path: root/filters
diff options
context:
space:
mode:
authorMartyn James Russell <mr@src.gnome.org>2008-09-26 10:41:53 +0000
committerMartyn James Russell <mr@src.gnome.org>2008-09-26 10:41:53 +0000
commitcaa9320c8ae7800acf2160701eb9284ac05e4eb9 (patch)
tree4e898755353a5326d40178bd3487508634a75b38 /filters
parent71721feab041175ea2b132ad4f1777a5c069abf5 (diff)
downloadtracker-caa9320c8ae7800acf2160701eb9284ac05e4eb9.tar.gz
Removed everything in preparation for bringing in new files
svn path=/trunk/; revision=2274
Diffstat (limited to 'filters')
-rw-r--r--filters/Makefile.am1
-rw-r--r--filters/application/Makefile.am25
-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.am13
-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
32 files changed, 0 insertions, 345 deletions
diff --git a/filters/Makefile.am b/filters/Makefile.am
deleted file mode 100644
index 4441f00c9..000000000
--- a/filters/Makefile.am
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS = application text
diff --git a/filters/application/Makefile.am b/filters/application/Makefile.am
deleted file mode 100644
index b3429114b..000000000
--- a/filters/application/Makefile.am
+++ /dev/null
@@ -1,25 +0,0 @@
-thumbappbindir = $(libdir)/tracker/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 b03bf47fb..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" > "$2" <<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 287757b55..000000000
--- a/filters/application/msword_filter
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-tmpdir=${TMPDIR-/tmp}
-tmpdir="$tmpdir"/tmpdir.$$
-
-(umask 077 && mkdir "$tmpdir") || exit 1
-
-tmpfile="$tmpdir"/tmpfile.$$
-
-cp "$1" "$tmpfile"
-
-# Change the working directory to $tmpdir which we can safely deleter 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" "$2"
-
-rm -rf "$tmpdir"
diff --git a/filters/application/pdf_filter b/filters/application/pdf_filter
deleted file mode 100755
index a972b0c1e..000000000
--- a/filters/application/pdf_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 pdftotext -enc UTF-8 -q -nopgbrk "$1" "$2"
diff --git a/filters/application/tab-separated-values_filter b/filters/application/tab-separated-values_filter
deleted file mode 100755
index b03bf47fb..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" > "$2" <<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 b03bf47fb..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" > "$2" <<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 4024891c4..000000000
--- a/filters/application/vnd.oasis.opendocument.presentation-template_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
diff --git a/filters/application/vnd.oasis.opendocument.presentation_filter b/filters/application/vnd.oasis.opendocument.presentation_filter
deleted file mode 100755
index 4024891c4..000000000
--- a/filters/application/vnd.oasis.opendocument.presentation_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
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 4024891c4..000000000
--- a/filters/application/vnd.oasis.opendocument.spreadsheet-template_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
diff --git a/filters/application/vnd.oasis.opendocument.spreadsheet_filter b/filters/application/vnd.oasis.opendocument.spreadsheet_filter
deleted file mode 100755
index 4024891c4..000000000
--- a/filters/application/vnd.oasis.opendocument.spreadsheet_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
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 4024891c4..000000000
--- a/filters/application/vnd.oasis.opendocument.text-template_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
diff --git a/filters/application/vnd.oasis.opendocument.text_filter b/filters/application/vnd.oasis.opendocument.text_filter
deleted file mode 100755
index 4024891c4..000000000
--- a/filters/application/vnd.oasis.opendocument.text_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
diff --git a/filters/application/vnd.stardivision.writer_filter b/filters/application/vnd.stardivision.writer_filter
deleted file mode 100755
index 4024891c4..000000000
--- a/filters/application/vnd.stardivision.writer_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
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 4024891c4..000000000
--- a/filters/application/vnd.sun.xml.calc.template_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
diff --git a/filters/application/vnd.sun.xml.calc_filter b/filters/application/vnd.sun.xml.calc_filter
deleted file mode 100755
index 4024891c4..000000000
--- a/filters/application/vnd.sun.xml.calc_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
diff --git a/filters/application/vnd.sun.xml.draw_filter b/filters/application/vnd.sun.xml.draw_filter
deleted file mode 100755
index 4024891c4..000000000
--- a/filters/application/vnd.sun.xml.draw_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
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 4024891c4..000000000
--- a/filters/application/vnd.sun.xml.impress.template_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
diff --git a/filters/application/vnd.sun.xml.impress_filter b/filters/application/vnd.sun.xml.impress_filter
deleted file mode 100755
index 4024891c4..000000000
--- a/filters/application/vnd.sun.xml.impress_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
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 4024891c4..000000000
--- a/filters/application/vnd.sun.xml.writer.template_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
diff --git a/filters/application/vnd.sun.xml.writer_filter b/filters/application/vnd.sun.xml.writer_filter
deleted file mode 100755
index 4024891c4..000000000
--- a/filters/application/vnd.sun.xml.writer_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 unzip -p "$1" content.xml | o3totxt > "$2"
diff --git a/filters/application/x-abiword_filter b/filters/application/x-abiword_filter
deleted file mode 100755
index a1fbe6356..000000000
--- a/filters/application/x-abiword_filter
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-nice -n19 xsltproc - "$1" > "$2" <<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 b03bf47fb..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" > "$2" <<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 13d4ce717..000000000
--- a/filters/text/Makefile.am
+++ /dev/null
@@ -1,13 +0,0 @@
-filterbindir = $(libdir)/tracker/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 b03bf47fb..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" > "$2" <<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 ee014ba17..000000000
--- a/filters/text/djvu_filter
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-nice -n19 djvused "$1" -e 'print-pure-txt' > "$2"
diff --git a/filters/text/html_filter b/filters/text/html_filter
deleted file mode 100755
index 22dcf31af..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" > "$2"
diff --git a/filters/text/spreadsheet_filter b/filters/text/spreadsheet_filter
deleted file mode 100755
index b03bf47fb..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" > "$2" <<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 b03bf47fb..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" > "$2" <<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 b03bf47fb..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" > "$2" <<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 72f9ae64e..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" > "$2";
-else cat "$1" > "$2";
-fi
diff --git a/filters/text/xml_filter b/filters/text/xml_filter
deleted file mode 100755
index a1fbe6356..000000000
--- a/filters/text/xml_filter
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-nice -n19 xsltproc - "$1" > "$2" <<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