RE: [cciug] trigger on removing a branch type

From: Henne, Heinz (Heinz.Henne@nectech.co.uk)
Date: Tue Feb 29 2000 - 06:56:22 EST


Try something like:

ct mktrtype -type -eltype -all -brtype -all -lbtype -all -hltype -all \
-trtype -all -attype -all -c "some comment..." \
-preop MODIFY_TYPE -exec <script_location> preop_type.trg

And have your script catch the different trigger operations, something like
this (sh syntax):
                <snip>
                case $CLEARCASE_OP_KIND in
                    rmtype)
                        nack_action "removing types is not allowed - see the
ClearCase administrator"
                        ;;
                    rntype)
                        nack_action "renaming types is not allowed - see the
ClearCase administrator"
                        ;;
                    ....
                </snip>

Hope this helps.

Heinz

---
Heinz Henne
ClearCase Administrator
NEC Technologies (UK) Ltd.
Tel: +44 (0) 118 9654535
Email: Heinz.Henne@nectech.co.uk

> ---------- > From: Mark Howell[SMTP:markho@comm.mot.com > Sent: 29 February 2000 11:47 > To: CCIUG > Subject: [cciug] trigger on removing a branch type > > > Hi, > How do I put a trigger to stop any users removing a branch type (or any > other type). I have the script but I want to do it the same way as > putting a "ct mktrtype -element -all -pre ....." trigger in place > > Regards > > Mark > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > > > http://clearcase.rational.com/cciug/mailing_list.html > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:23:31 EDT