File: plot2hpgl.test

package info (click to toggle)
plotutils 2.4.1-11
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 11,676 kB
  • ctags: 6,967
  • sloc: ansic: 76,305; sh: 15,172; cpp: 12,403; yacc: 2,604; makefile: 888; lex: 144
file content (24 lines) | stat: -rwxr-xr-x 597 bytes parent folder | download | duplicates (13)
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

../plot/plot -T hpgl <$SRCDIR/graph.xout >plot2hpgl.out 2>/dev/null

# Two possibilities: either the HP-GL/2 output file isn't allowed to
# contain PS fonts such as Times-Roman, or it is (because the
# --enable-ps-fonts-in-pcl option was added to `configure').  If the
# former, `plot' will replace Times-Roman by the default font,
# HersheySerif.

if test "$PS_FONTS_IN_PCL" = "0"
then	
	if cmp -s $SRCDIR/plot2hpgl.xout plot2hpgl.out
		then retval=0;
		else retval=1;
		fi;
else
	if cmp -s $SRCDIR/plot2hpgl.yout plot2hpgl.out
		then retval=0;
		else retval=1;
		fi;
fi

exit $retval