blob: b03bf47fbe7639f24759d5a94996d657b8a3983b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/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"
|