這個腳本是非常簡單的。它執行cleartool find -type f,並且對於每個存在的文件(因爲您可以在包含未加載元素的快照視圖中運行此文件),將當前元素類型與當前魔術文件將分配的類型進行比較。
不需要標籤選項中,只有LOOKIN:
C:\Users\bcowan>ccperl "\Program Files (x86)\IBM\RationalSDLC\ClearCase\reports\scripts\Elements\Elements_with_Changed_Element_Type.prl" -i
description : "Elements with Changed Element Type"
id : 2021
helpfile :
parameters : LOOKIN
rightclick : Properties_of_Element(single) sep Version_Tree(single) History(single) sep Change_Element_Type
fields : "Element Path"(element_pn, sort 3, rightclick) "Element Type"(eltype) "Element's default.magic Type"(eltype, sort 2) "Element Types Different"(yes_no, sort 1)
所以,當我運行命令:
C:\Users\bcowan>ccperl "\Program Files (x86)\IBM\RationalSDLC\ClearCase\reports\scripts\Elements\Elements_with_Changed_Element_Type.prl" LOOKIN=\"v:\uncview\mkvobtest\p7zip\";
我得到這個:
v:\uncview\mkvobtest\p7zip\p7zip_9.20.1\Asm\x64\7zCrcT8U.asm;text_file;text_file;no
v:\uncview\mkvobtest\p7zip\p7zip_9.20.1\Asm\x86\7zCrcT8U.asm;text_file;text_file;no
v:\uncview\mkvobtest\p7zip\p7zip_9.20.1\C\7zBuf.h;text_file;text_file;no
v:\uncview\mkvobtest\p7zip\p7zip_9.20.1\C\7zBuf2.c;text_file;text_file;no
v:\uncview\mkvobtest\p7zip\p7zip_9.20.1\C\7zCrc.c;text_file;text_file;no
v:\uncview\mkvobtest\p7zip\p7zip_9.20.1\C\7zCrc.h;text_file;text_file;no
v:\uncview\mkvobtest\p7zip\p7zip_9.20.1\C\7zCrcOpt.c;text_file;text_file;no
...
是我的回答足夠?不要忘記閱讀https://stackoverflow.com/help/accepted-answer(針對這個問題或其他問題) – VonC