#!/bin/sh
# $XFree86: test/xsuite/build.sh,v 1.1 2003/12/06 02:46:10 dawes Exp $
#
# This script can be used to build the xtest suite.
#
OsName="`uname`"
OsVersion="`uname -r`"
case "$OsName" in
*BSD)
	tetOS=bsd
	;;
Linux)
	tetOS=linux
	;;
SunOS)
	# Assume Solaris
	tetOS=svr4
	;;
*)
	# Fallback
	echo "Unknown OS.  Trying a fallback."
	tetOS=std
esac
rm -f xtest/tetbuild.cfg
ln -s tetbuild.cfg.$tetOS xtest/tetbuild.cfg
xmkmf
TET_ROOT=`pwd`
R=$TET_ROOT
X=$R/xtest
L=$X/lib
make TET_ROOT=$R TETBASE=$R/tet XTESTBIN=$X/bin XTESTINCDIR=$X/include \
 XTESTLIB=$L/libxtest.a XSTLIB=$L/libXst.a XTESTFONTDIR=$X/fonts/install
