问题
I have to move the trigger's scripts from one server to another, on both linux and windows.
As far as i know i have to use the ct mktrtype
command with the -replace
parameter, I've read on IBM web site that i have to use the same command that was used to create those triggers.
How can i identify the command that was used.
Here is part of my triggers:
trigger type "REMOVE_EMPTY_BRANCH"
2007-11-27T15:29:00+02:00 by vobadm.ccusers@tlv-vob2
"Automatically remove empty branches"
owner: ARRS\vobadm
group: ARRS\ccusers
all element trigger
post-operation rmbranch, rmver, uncheckout
action: -execunix /usr/bin/perl -I /tlv-vob2/triggers/lib /tlv-vob2/triggers/rm_empty_branch.pl
action: -execwin \\tlv-vob2\perl\bin\perl -I \\tlv-vob2\perl\lib -I \\tlv-vob2\triggers\lib \\tlv-vob2\triggers\rm_empty
_branch.pl
trigger type "RESTRICT_BASELINE_OPS"
2007-11-28T13:20:20+02:00 by vobadm.ccusers@tlv-vob2
"Restrict normal users from creating baselines, unless they are performing a rebase or deliver"
owner: ARRS\vobadm
group: ARRS\ccusers
all UCM object trigger
pre-operation mkbl, chbl, rmbl
action: -execunix /usr/bin/perl -I /tlv-vob2/triggers/lib /tlv-vob2/triggers/mkbl_pre.pl
action: -execwin \\tlv-vob2\perl\bin\perl -I \\tlv-vob2\perl\lib -I \\tlv-vob2\triggers\lib \\tlv-vob2\triggers\mkbl_pre
.pl
excluded users: vobadm,amason,builder
trigger type "UNCO_POST"
2007-11-27T15:29:00+02:00 by vobadm.ccusers@tlv-vob2
"Safely remove empty branches on uncheckout"
owner: ARRS\vobadm
group: ARRS\ccusers
all element trigger
post-operation uncheckout
action: -execunix /usr/bin/perl -I /tlv-vob2/triggers/lib /tlv-vob2/triggers/unco_post.pl
action: -execwin \\tlv-vob2\perl\bin\perl -I \\tlv-vob2\perl\lib -I \\tlv-vob2\triggers\lib \\tlv-vob2\triggers\unco_pos
t.pl
I need to move the triggers to this path: Windows: \poseidon01\clearcase\triggers, \poseidon01\clearcase\perl UNIX: //tlv-vob3/triggers ///usr/bin/perl
回答1:
It should be something (from cleartool mktrtype man page and this older example)
cleartool mktrtype -replace -element -all -postop rmbranch,rmver,uncheckout -execwin <windows_path> -execunix <unix_path> "REMOVE_EMPTY_BRANCH"
来源:https://stackoverflow.com/questions/27906447/clearcase-moving-triggers-scripts-to-another-location