File: local-test

package info (click to toggle)
html2ps 1.0b7-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,208 kB
  • sloc: perl: 4,539; tcl: 1,799; sh: 38; makefile: 4
file content (24 lines) | stat: -rw-r--r-- 395 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -eu

HTMLFILE="$AUTOPKGTEST_TMP/page.html"
PSFILE="$AUTOPKGTEST_TMP/out.ps"

echo "Creating file for local testing ($HTMLFILE)"
cat > $HTMLFILE <<EOF
<!DOCTYPE html>
<html>
<head><title>Test Page!</title></head>
<body><p>HTML for testing!</p></body>
</html>
EOF

html2ps $HTMLFILE > $PSFILE

if [ ! -s "$PSFILE" ]; then
    echo "ERROR on creating $PSFILE."
    exit 1
fi

exit 0