#!/bin/csh

#echo 'Making sure that files have correct group and permissions...'

#set DBDIR = /home/psgendb/labace/database

# when finished with xace, run find to make sure
# that lock.wrm is deleted, if it exists AND we 
# own that file.

# Assuming that environment varibles are inherited
# from birchdb, which calls this script.

cd $DBDIR

find . -name lock.wrm -user `whoami`  -exec rm {} \;

#Make sure files in 'new' and 'touched' directories
# are in drr group and are group writeable

find ./new ./touched ./readlocks ./oldlogs -user `whoami` -exec chgrp psgendb {} \; -exec chmod g+rw {} \;
