File: test_html.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 (18 lines) | stat: -rwxr-xr-x 271 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh

result=0

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

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

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

exit $result