#!/bin/sh

if [ -x /usr/bin/ooconvert ]
then
	# run the OpenOffice conversion tool to PDF
	/usr/bin/ooconvert "$1" "$1".pdf
	# open the PDF viewer application
	export -n SAGE_APP_CONFIG
	$SAGE_DIRECTORY/bin/pdfviewer "$1".pdf
fi


