#!/bin/bash
#
#	$Id: do_view.bash,v 1.1.1.1 2000/12/28 01:23:45 gmt Exp $
#
#	Simple driver to view all examples using ghostview
#

[ -n psviewer ] || psviewer=`command -v see 2>/dev/null`
[ -n psviewer ] || psviewer=`command -v gv 2>/dev/null`
[ -n psviewer ] || psviewer=`command -v ghostview 2>/dev/null`

if [ -z psviewer ]; then
	echo <<EOF
Sorry, you need the 'see' command or either gv or ghostview to run this 
script. Please install the package mime-support to get the see command 
and have you favorite PostScript viewer installed.

Thanks
EOF
	exit 1
fi

for f in ex??/example_??.ps
do
	see $f
done
