#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.1.1.1 2003/06/17 19:55:13 marcm Exp $

set -e
PREFIX=${PKG_PREFIX:-/usr/local}
PATH=/bin:/usr/bin:/sbin:/usr/sbin

do_post() {
	echo 
	echo "+---------------"
	echo "| On systems using Xft, to have the system automatically use the"
	echo "| Bitstream Vera fonts as defaults, simply drop the fonts.conf file"
	echo "| located at:"
	echo "|"
	echo "|     ${PREFIX}/share/examples/bitstream-vera-fonts/local.conf"
	echo "|"
	echo "| into your /etc/fonts directory."
	echo "|"
	echo "| To access these fonts on a non-Xft systems add the fonts to your"
	echo "| font path with the following commands:"
	echo "|"
	echo "|     xset fp+ ${PREFIX}/lib/X11/fonts/bitstream-vera"
	echo "|     xset fp rehash"
	echo "+---------------"
	echo 
}

# verify proper execution
#
if [ $# -ne 2 ]; then
	echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
	exit 1
fi

# Verify/process the command
#
case $2 in
	PRE-INSTALL)
		;;
	POST-INSTALL)
		do_post
		;;
	*)
		echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
		exit 1
		;;
esac

exit 0
