#!/bin/sh
#
# Copyright (c) 1997-2002 Silicon Graphics, Inc.  All Rights Reserved.
#
# Install the schizo PMDA
#

. /etc/pcp.env
. $PCP_SHARE_DIR/lib/pmdaproc.sh
PCP_PMDAS_DIR=${PCP_VAR_DIR}/testsuite/pmdas

iam=schizo
dso_opt=false

pmdaSetup

rm -f pmda${iam} root pmns help
while true
do
    echo -n "Install PMDA Version A or B? "
    read ans
    if [ -z "$ans" ]
    then
	:
    elif [ "$ans" = A ]
    then
	ln pmda${iam}-A pmda${iam} || exit 1
	ln root-A root || exit 1
	ln pmns-A pmns || exit 1
	ln help-A help || exit 1
	break
    elif [ "$ans" = B ]
    then
	ln pmda${iam}-B pmda${iam} || exit 1
	ln root-B root || exit 1
	ln pmns-B pmns || exit 1
	ln help-B help || exit 1
	break
    fi
    echo "Answer the question, bozo"
done

pmdaInstall
exit 0
