/usr/share/doc/swish++/examples/oo_indexing/oototext.sh is in swish++ 6.1.5-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/sh -e
# Copyright (C) 2004 Bastian Kleineidam <calvin@debian.org>
# The contents of this file are released in the Public Domain
# convert openoffice documents to text
# suitable for full-text indexing
# usage: oototext.sh <openoffice file>
# requires: unzip, xsltproc
case "$1" in
*.sxd|*.sxw|*.sxc|*.sxi)
unzip -p "$1" meta.xml | xsltproc --novalid oometa.xsl -
unzip -p "$1" content.xml | xsltproc --novalid oocontent.xsl -
break
;;
*)
echo "Unsupported file type $1"
exit 1
break
;;
esac
|