#!/bin/sh
# Copyright (c) 2005 X.Org Foundation L.L.C.
# 
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is furnished to do
# so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
:
# $Header: /usr4/cvs/vsw5/bin/vswrptx,v 8.0 1998/12/23 23:22:44 mar Rel $
#
#                Copyright (c) Applied Testing and Technology, Inc. 1993, 1994
#                All Rights Reserved.
#
# Project:        VSW5
#
# File:           vswrptx
#
# Description:
#                Produces X/Open conformance summary report for VSW
#
# Modifications:
# $Log: vswrptx,v $
# Revision 8.0  1998/12/23 23:22:44  mar
# Branch point for Release 5.0.2
#
# Revision 7.0  1998/10/30 22:40:43  mar
# Branch point for Release 5.0.2b1
#
# Revision 6.0  1998/03/02 05:15:19  tbr
# Branch point for Release 5.0.1
#
# Revision 5.0  1998/01/26 03:11:51  tbr
# Branch point for Release 5.0.1b1
#
# Revision 1.1  1998/01/13 00:53:42  andy
# Replace xreport[2]
#
# Revision 4.0  1995/12/15 08:37:35  tbr
# Branch point for Release 5.0.0
#
# Revision 3.2  1995/12/15  00:33:25  andy
# Prepare for GA Release
#

LINES=54
while getopts :f:j:o:s:l:n TEMP
do
	case $TEMP in 
	f)
		case "$JMODE" in
		"")
			;;
		*)
			echo "vswrptx: -j, -f, and -u modes cannot be used in combination"
			exit 1
			;;
		esac
		JMODE="-$TEMP"
		JARG=$OPTARG
		;;
	j)
		case "$JMODE" in
		"")
			;;
		*)
			echo "vswrptx: -j, -f, and -u modes cannot be used in combination"
			exit 1
			;;
		esac
		JMODE="-$TEMP"
		JARG=$OPTARG
		;;
	u)
		case "$JMODE" in
		"")
			;;
		*)
			echo "vswrptx: -j, -f, and -u modes cannot be used in combination"
			exit 1
			;;
		esac
		JMODE="-$TEMP"
		;;
	s)	
		SYSTEM="-s $OPTARG"
		;;
	o)
		ORG="-o $OPTARG"
		;;
	l)
		LINES=$OPTARG
		;;
	?)
		echo "vswrptx: invalid argument: " $OPTARG
		echo "usage: vswrptx -s system -o organization [-j n] [-f filename] [-u]"
		exit 1
		;;
	esac
done
	vswrptx2 $JMODE $JARG|vsw_pr -l "$LINES" "$ORG" "$SYSTEM"
