updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mindtouch / filters.patch
blobf8c0ea552838331f80731b7e99bfd397a29741b4
1 --- a/web/bin/filters/pptx2txt 2011-12-01 17:08:13.338323187 +0000
2 +++ b/web/bin/filters/pptx2txt 2011-12-01 17:08:30.591873443 +0000
3 @@ -8,7 +8,7 @@
4 dd of=$TEMP > /dev/null 2>&1
5 TEMPDIR=`mktemp -d`
6 unzip -oq $TEMP -d $TEMPDIR # Extract the file
7 -cat $TEMPDIR/ppt/slides/slide*.xml | tr "<" "\012" | grep ^a:t | cut '-d>' -f2, | uniq | sed '/^$/ d'
8 +cat $TEMPDIR/ppt/slides/slide*.xml | tr "<" "\012" | grep ^a:t | cut '-d>' -f2 | uniq | sed '/^$/ d'
9 rm $TEMP
10 rm -r $TEMPDIR #Delete excess (formatting) folders
12 --- a/web/bin/filters/odt2txt 2011-12-01 17:08:19.698403152 +0000
13 +++ b/web/bin/filters/odt2txt 2011-12-01 17:08:39.301982963 +0000
14 @@ -10,6 +10,6 @@
15 echo $TEMP >> /tmp/converter.log
16 TEMPDIR=`mktemp -d`
17 unzip -oq $TEMP -d $TEMPDIR # Extract the file
18 -tr "<" "\012" < $TEMPDIR/content.xml | grep ^text | cut '-d>' -f2, | uniq | sed '/^$/ d'
19 +tr "<" "\012" < $TEMPDIR/content.xml | grep ^text | cut '-d>' -f2 | uniq | sed '/^$/ d'
20 rm $TEMP
21 rm -rf $TEMPDIR
22 --- a/web/bin/filters/odp2txt 2011-12-01 17:08:23.975123591 +0000
23 +++ b/web/bin/filters/odp2txt 2011-12-01 17:08:47.058747156 +0000
24 @@ -10,6 +10,6 @@
25 TEMPDIR=`mktemp -d`
26 unzip -oq $TEMP -d $TEMPDIR # Extract the file
27 tr "<" "\012" < $TEMPDIR/content.xml | egrep '^text:p|text:span' \
28 - | cut '-d>' -f2, | uniq | sed '/^$/ d'
29 + | cut '-d>' -f2 | uniq | sed '/^$/ d'
30 rm $TEMP
31 rm -r $TEMPDIR #Delete excess (formatting) folders