head     1.1;
access   brad larry;
symbols  ;
locks    ; strict;
comment  @# @;


1.1
date     86.11.05.12.40.57;  author geli;  state Exp;
branches ;
next     ;


desc
@shell script to generate the testplan for the PAWS 3.2 BACKUP utility.
@



1.1
log
@Initial revision
@
text
@####################################################################
#
#	This shell script makes the testplan for the PAWS 3.2
#	BACKUP utility.
#
#	usage: makeplan -t | -n [<output file>]
#
#	There are two possible formats, which can be specified with
#	an option. This is troff format, with option -t, and nroff
#	format with option -n. For the nroff format an optional second
#	option, which indicates the name of a file, may be specified.
#	If given the testplan is output to that file. If not stdout
#	is the default output for the testplan. The output is done to
#	"ljetp" for the troff format.
#
#	Author: Angelika Hierath
#		5-Nov-86
#
####################################################################
USAGE="usage: makeplan -t | -n [<output file>]"

PLANLIST="abstr.mm bkp.mm resource.mm strat.mm summary.mm tapebkup.mm tstbkp.mm tstrest.mm tstspec.mm tsttable.mm tstunit.mm"

if [ $# -ne 1  -a $# -ne 2 ]
then
	echo $USAGE
	exit 1
else

# options valid?
	case $1 in
		-t);;
		-n);;
		*)	echo $USAGE
			exit 1;;
	esac

# first check out the files from RCS
	for i in $PLANLIST
	do
		if [ ! -f $i ]
		then
			co $i
		fi
	done

	case $1 in
		-t)	tbl summary.mm > summary.tbl
			tbl resource.mm > resource.tbl
			tbl tstbkp.mm >tstbkp.tbl
			tbl tstunit.mm > tstunit.tbl
			tbl tstspec.mm > tstspec.tbl
			troff -mm bkp.mm;;
		-n)	tbl summary.mm > summary.tbl
			tbl resource.mm > resource.tbl
			tbl tstbkp.mm >tstbkp.tbl
			tbl tstunit.mm > tstunit.tbl
			tbl tstspec.mm > tstspec.tbl
			if [ $# -ne 2 ]
			then
				nroff -mm bkp.mm
			else
				nroff -mm bkp.mm >$2
			fi ;;
	esac

	rm summary.tbl
	rm resource.tbl
	rm tstbkp.tbl
	rm tstunit.tbl
	rm tstspec.tbl

	echo "####################################################"
	echo "       DONE with generate testplan for BACKUP"
	echo "####################################################"

fi
@
