#!/bin/sh
if [ "$2" != "POST-INSTALL" ]; then
  exit 0
fi

if [ `gs -v|sed -e 's/.*Ghostscript *\([0-9]\).*/\1/' -e q` -ge 7 ]; then
    echo "Ghostscript version >=7.00 include an x11 display with aa"
    echo "Set -sDISPLAY=x11 -dNOPLATFONTS -dTextAlphaBits=4 -dGraphicsAlphaBits=4"
    echo "To use it"
    echo "It has better rendering than x11alpha, but is significantly slower"
fi
