plot2hpgl.test 597 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. ../plot/plot -T hpgl <$SRCDIR/graph.xout >plot2hpgl.out 2>/dev/null
  3. # Two possibilities: either the HP-GL/2 output file isn't allowed to
  4. # contain PS fonts such as Times-Roman, or it is (because the
  5. # --enable-ps-fonts-in-pcl option was added to `configure'). If the
  6. # former, `plot' will replace Times-Roman by the default font,
  7. # HersheySerif.
  8. if test "$PS_FONTS_IN_PCL" = "0"
  9. then
  10. if cmp -s $SRCDIR/plot2hpgl.xout plot2hpgl.out
  11. then retval=0;
  12. else retval=1;
  13. fi;
  14. else
  15. if cmp -s $SRCDIR/plot2hpgl.yout plot2hpgl.out
  16. then retval=0;
  17. else retval=1;
  18. fi;
  19. fi
  20. exit $retval