|
Lines 1-18
Link Here
|
| 1 |
/usr gets changed to ${LOCALBASE} in post-patch:, so we |
1 |
/usr gets changed to ${LOCALBASE} in post-patch:, so we |
| 2 |
cheat and set xpdf's path to /usr/lib. |
2 |
cheat and set xpdf's path to /usr/lib. |
| 3 |
|
3 |
|
| 4 |
--- src/plugins/fts/decode2text.sh.orig 2015-12-12 16:32:01 UTC |
4 |
--- src/plugins/fts/decode2text.sh.orig 2016-10-27 12:26:25 UTC |
| 5 |
+++ src/plugins/fts/decode2text.sh |
5 |
+++ src/plugins/fts/decode2text.sh |
| 6 |
@@ -79,7 +79,11 @@ wait_timeout() { |
6 |
@@ -79,16 +79,20 @@ wait_timeout() { |
| 7 |
LANG=en_US.UTF-8 |
7 |
LANG=en_US.UTF-8 |
| 8 |
export LANG |
8 |
export LANG |
| 9 |
if [ $fmt = "pdf" ]; then |
9 |
if [ $fmt = "pdf" ]; then |
| 10 |
- /usr/bin/pdftotext $path - 2>/dev/null& |
10 |
- /usr/bin/pdftotext $path - 2>/dev/null& |
| 11 |
+ if [ -x /usr/lib/xpdf/pdftotext ]; then |
11 |
+ if [ -x /usr/local/lib/xpdf/pdftotext ]; then |
| 12 |
+ /usr/lib/xpdf/pdftotext $path - 2>/dev/null& |
12 |
+ /usr/local/lib/xpdf/pdftotext $path - 2>/dev/null& |
| 13 |
+ else |
13 |
+ else |
| 14 |
+ /usr/bin/pdftotext $path - 2>/dev/null& |
14 |
+ /usr/local/bin/pdftotext $path - 2>/dev/null& |
| 15 |
+ fi |
15 |
+ fi |
| 16 |
wait_timeout 2>/dev/null |
16 |
wait_timeout 2>/dev/null |
| 17 |
elif [ $fmt = "doc" ]; then |
17 |
elif [ $fmt = "doc" ]; then |
| 18 |
(/usr/bin/catdoc $path; true) 2>/dev/null& |
18 |
- (/usr/bin/catdoc $path; true) 2>/dev/null& |
|
|
19 |
+ (/usr/local/bin/catdoc $path; true) 2>/dev/null& |
| 20 |
wait_timeout 2>/dev/null |
| 21 |
elif [ $fmt = "ppt" ]; then |
| 22 |
- (/usr/bin/catppt $path; true) 2>/dev/null& |
| 23 |
+ (/usr/local/bin/catppt $path; true) 2>/dev/null& |
| 24 |
wait_timeout 2>/dev/null |
| 25 |
elif [ $fmt = "xls" ]; then |
| 26 |
- (/usr/bin/xls2csv $path; true) 2>/dev/null& |
| 27 |
+ (/usr/local/bin/xls2csv $path; true) 2>/dev/null& |
| 28 |
wait_timeout 2>/dev/null |
| 29 |
elif [ $fmt = "odt" -o $fmt = "ods" -o $fmt = "odp" ]; then |
| 30 |
xmlunzip "content.xml" |