File: lloconvtest

package info (click to toggle)
lloconv 6.1.3-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 496 kB
  • sloc: sh: 1,384; cpp: 788; makefile: 10
file content (13 lines) | stat: -rwxr-xr-x 332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -e

: ${LLOCONV=`pwd`/lloconv}
tmp=`mktemp -d`
trap 'rm -rf "$tmp"' 0 1 2 13 15

cd "$tmp"
echo '<html><title>foo</title><body>hello world</body></html>' > in.html
$LLOCONV -q in.html out.doc
file --mime-type out.doc | grep -q '^out\.doc: application/msword$'
$LLOCONV -q out.doc rev.txt
grep -q 'hello world' rev.txt