#!/bin/sh
#	@(#)showlocks	1.1	09/19/95
#
#
#
#     $Id: showlocks,v 1.1 1998/03/16 20:03:00 avvede Exp $
#     $Log: showlocks,v $
#     Revision 1.1  1998/03/16 20:03:00  avvede
#     Initial move to CVS
#
#
#
#	Copyright (c) 1986, 1987, 1988 by
#	Periphonics Corporation
#	4000 Veterans Memorial Highway
#	Bohemia
#	NY 11716
#
#	This software is furnished under a license and may be used and
#	copied only in accordance with the terms of such license and with
#	the inclusion of the above copyright notice. This software or any
#	other copies thereof, may not be provided or otherwise made available
#	to anyone other than the licensee. Title to and ownership of this
#	software remains with the Periphonics Corporation.
#
#	The information in this document is subject to change without notice
#	and should not be construed as a commitment by Periphonics.
#
#	Periphonics assumes no responsibility for the use or reliability of
#	its software on equipment that is not supplied by Periphonics.
#
#	File Name:
#		showlocks
#
#	Description:
#		Procedure to produve VRAM applications.
#		See usage line below.
#
#	Change				Reason
#	No.	Date		Name	for Change
#
#	0	18-sep-95	lmg	Original.
#
#
echo " "

vassm 2>/dev/null | \
egrep 'Segment #|Pic' | \
awk '{ if ($1 == "Segment") \
	lockfile = "/usr/tmp/VASSMlock" $4 ; \
       else \
	print "if ( -r " lockfile " ) then\necho \necho Resource " $1 ":\nchecklock 0 0 " lockfile "\nendif" \
      }' | \
csh

echo " "
