1 ################################################################################
3 # File: SetOwnershipTrigger.pl
4 # Description: This script will set the ownership of Clearcase elements to
5 # ccadmin when a mkelem is performed. This way all Clearcase
6 # elements will be owned by ccadmin and therefore nobody but
7 # ccadmin will be able to do the destructive rmelem.
8 # Author: Andrew@DeFaria.com
9 # Created: Wed Nov 14 16:41:48 2001
13 # (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved
15 ################################################################################
16 $pname = "$ENV{CLEARCASE_PN}";
20 $_ = `cleartool describe $pname`;
21 if (/User :\s+(\S*)\s*:/) {
27 if ($owner ne "$adm") {
28 `cleartool protect -chown $adm $ENV{CLEARCASE_PN}`;