File: test_latex.sh

package info (click to toggle)
unrtf 0.21.5-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 4,940 kB
  • sloc: ansic: 5,022; sh: 4,279; makefile: 112
file content (19 lines) | stat: -rwxr-xr-x 286 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

result=0

for name in ${srcdir}/*.rtf; do

    output=`echo ${name} | sed "sI.\+/IIg"`
    echo "${UNRTF} --latex ${name} > ${output}.tex"

    if ${UNRTF} --latex ${name} > ${output}.tex; then
	echo "success."
    else
	echo "FAILURE!"
	result=1
    fi
done

exit $result