File: conv-pdftotext

package info (click to toggle)
dhelp 0.6.31
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 596 kB
  • sloc: ruby: 1,171; sh: 555; perl: 372; makefile: 83
file content (14 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# Script optimised to run from within dhelp's swish++.conf.
# That means:
# * No error checking on parameters; edit swish++.conf the right way.
# * Spit output only on errors (a line pointing to input file).
#
# $1 = Input file, $2 = Output file

2>/dev/null pdftotext "${1}" "${2}"
EXITVAL=$?
if [ ${EXITVAL} -ne 0 ]; then
	echo "Error converting file: ${1}"
fi
exit ${EXITVAL}