#!/bin/csh -f
#
# $XConsortium: run_InsPEX,v 5.6 94/04/17 20:46:08 keith Exp $
#
# Copyright 1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
# 
#			 All Rights Reserved
# 
# Permission to use, copy, modify, and distribute this software and its 
# documentation for any purpose and without fee is hereby granted, 
# provided that the above copyright notice appear in all copies and that
# both that copyright notice and this permission notice appear in 
# supporting documentation, and that the names of Sun Microsystems
# and the X Consortium not be used in advertising or publicity 
# pertaining to distribution of the software without specific, written 
# prior permission.  
# 
# SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
# EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
# USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.

#####	You'll possibly want to change these....

#	Name of the server that we run.  (Used to scan for running process.)
set    SNAME=Xsun
#	(Emptied) directory to accept InsPEX's output -- which is ***LOTS**
setenv INSPEXDEST /tmp/inspex_test
#	Can set the root of all evils right here....
setenv XHOME ../../..
setenv PEXHOME ../..

###########################################################################

#	*Abs* paths to X includes/libraries gets set here (optional)
setenv XINCDIR `cd $XHOME/X11; pwd`
setenv XLIBDIR `cd $XHOME/lib; pwd`
#	Path to X utility programs gets added here
set path=($path /usr/bin/X11)

# SET the following to run the tests using client-side structure storage
#setenv I_CLIENT_SIDE 1

# PEXLIBDIR, PEXINCDIR - directories containing the PEX includes and libs.
setenv PEXLIBDIR `cd $PEXHOME/lib/PEX; pwd`
setenv PEXINCDIR $XINCDIR
# SET the location of the api support files to override the default location
# default location is where the files are installed by a 'make install'
setenv PEXAPIDIR `cd $PEXHOME/lib/PEX/lib; pwd`

setenv INSPEXHOME $cwd

# prepare destination test result area
mkdir $INSPEXDEST >& /dev/null
# this is sooo stupid
#mv $INSPEXDEST/ilog* /tmp >& /dev/null

if (! -x newpgrp )  cc -o newpgrp newpgrp.c

# newpgrp 
sh inspex.sh 
#-clean_all
