ClearCase移动脚本到另一个位置

时间:2015-01-12 16:24:37

标签: clearcase clearcase-ucm cleartool

我必须在Linux和Windows上将触发器的脚本从一个服务器移动到另一个服务器。 据我所知,我必须使用带有ct mktrtype参数的-replace命令,我在IBM网站上读到我必须使用用于创建这些触发器的相同命令。 如何识别使用的命令。 以下是我的触发器的一部分:

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

我需要将触发器移动到此路径: Windows:\ poseidon01 \ clearcase \ triggers,\ poseidon01 \ clearcase \ perl UNIX:// tlv-vob3 /触发/// usr / bin / perl

1 个答案:

答案 0 :(得分:0)

它应该是某种东西(来自cleartool mktrtype man pagethis older example

cleartool mktrtype -replace -element -all -postop rmbranch,rmver,uncheckout -execwin <windows_path> -execunix <unix_path> "REMOVE_EMPTY_BRANCH"