#! /bin/sh

# try to set up Unicode printing environment based on uniprint,
# the printing tool of the yudit editor
# (including download and compilation if necessary)

uver=`uniprint -h 2>&1 | sed -e "1 s,[^0-9]*\([0-9.]*\)\(.*\),\1," -e t -e d`

case "$uver" in
2.[7-9].*|2.[0-9][0-9]*|[3-9].*|[0-9][0-9].*)
	echo found uniprint version $uver in your PATH
	ok=true;;
[0-2].*)
	echo found insufficient uniprint version $uver in your PATH
	ok=false;;
*)	echo did not find uniprint in your PATH
	ok=false;;
esac

