PROTECT.sh When new elements are created in the VOB change the elements ownership to the owner of the VOB and change element permissions to appropiate for element_type.
| ||||
Author | : | A Better Solution, Inc. | ||
: | support@abs-consulting.com | |||
URL | : | https://abs-consulting.com | ||
Date | : | April 08, 1998 |
This trigger script is expected to be called from a post-mkelem trigger.
Create an element global trigger and apply to post-mkelem like so (or similar):
cleartool mktrtype -ele -all -post mkelem -c "Properly protect elements after they are created in VOB" -exec "{path}/PROTECT.sh" PROTECT
If using ClearTrigger, you don't need to write ANY trigger code... Just turn on functionality bit (1) from the list of 25 Functionality Bits in the configuration file.
Read more on Policy without Triggers using ClearTrigger.