:
#
#	Procedure BRSDBCOMP
#
#		SCCS ID is "@(#) BRS brsdbcomp.sh v61.2 (8/28/92) { Release 6.1 }"
#

if [ $# -gt 1 ] ; then
	echo "brsdbcomp: invalid arguments"
	exit 1
	fi

if [ $# = 1 -a \( "x$1" = x-h -o "x$1" = x-help \) ] ; then
	echo "
The BRSDBCOMP Procedure -
     Procedure to text compress a database

COMMAND FORMAT:
	brsdbcomp

	Optional Parameters:
		None

DESCRIPTION:

     This  procedure invokes the BRS Automated Database Text Compression
     routines.  You  may  compress  the  text of any database using this
     procedure,  with  little  interaction.   Be  forewarned  that  this
     procedure  can be take a long time to complete its processing.  You
     must  be a System Administrator to use this procedure.  The optimal
     number  of  documents  to  compress  a  database with is 50 to 350,
     depending upon document size.
"
		exit 2
elif [ $# -gt 1 ] ; then
	echo "brsdbcomp: invalid argument"
	exit 1
	fi

Dir=`brsconfig BIN`
Prog=${Dir}brsmns

exec ${Prog} -d SELECT -m COMPR_
