remove_view error

本文提供了一个用于自动化清理ClearCase中特定视图及其标签的Perl脚本。该脚本接收视图标签作为参数,并依次进行获取视图信息、从VOB中移除对应条目、注销视图及删除视图标签的操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

@rem = 'Perl, ccperl read this as an array assignment & skip the goto
@echo off
@goto endofperl
@rem ';
#--------------------------------------------------------------------
# Perl Begin
#-------------------------------------------------------------------
$ct='cleartool';
if($#ARGV == -1) {
print "usage: $0 <view-tag> .../n";
exit(1);
}
for($viewcnt = 0; $viewcnt <= $#ARGV; $viewcnt++) {
$view = $ARGV[$viewcnt];
print "/$view = $view/n";
# Get view-information
@viewinfo = `$ct lsview -long $view`;
foreach $entry (@viewinfo) {
chop($entry);
if($entry =~ /View tag uuid:/) {
($uuid = $entry) =~ s/.*View tag uuid://i;
}
}
print "/$uuid = ...$uuid.../n";
# remove entries from vob's
@voblist = `$ct lsvob -short`;
$error='';
foreach $vob (@voblist) {
chop($vob);
system("$ct rmview -force -vob $vob -uuid $uuid");
}
# unregister view
print "Unregister View/n";
system("$ct unregister -view -uuid $uuid");
# remove view tag
print "Remove Tag/n";
system("$ct rmtag -view -all $view");
}
#--------------------------------------------------------------------
# Perl End
#--------------------------------------------------------------------
__END__
:endofperl
REM Call Perl either with ext. ".bat" or without ext. ".bat" and
REM either in the current directory or somewhere in the path
ccperl -e "$s = shift;$c = $s =~ /.bat$/? $s : $s.'.bat';$p = (-x $c)? '' : ' -S '; system('ccperl'.$p.$c.' '.join(' ',@ARGV));exit $?;" %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
pause 
In file included from /usr/include/spdlog/spdlog.h:12, from /home/lu/Downloads/rune_ku/g2o-master/g2o/stuff/logger.h:34, from /home/lu/Downloads/rune_ku/g2o-master/g2o/stuff/timeutil.cpp:31: /usr/include/spdlog/common.h:127:111: error: ‘basic_runtime’ is not a member of ‘fmt’ 127 | std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value> | ^~~~~~~~~~~~~ /usr/include/spdlog/common.h:127:125: error: template argument 2 is invalid 127 | std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value> | ^~~~ /usr/include/spdlog/common.h:127:138: error: expected ‘{’ before ‘>’ token 127 | std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value> | ^ In file included from /usr/include/spdlog/spdlog.h:12, from /home/lu/Downloads/rune_ku/g2o-master/g2o/stuff/logger.h:34, from /home/lu/Downloads/rune_ku/g2o-master/g2o/stuff/logger.cpp:27: /usr/include/spdlog/common.h:127:111: error: ‘basic_runtime’ is not a member of ‘fmt’ 127 | std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value> | ^~~~~~~~~~~~~ /usr/include/spdlog/common.h:127:125: error: template argument 2 is invalid 127 | std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value> | ^~~~ /usr/include/spdlog/common.h:127:138: error: expected ‘{’ before ‘>’ token 127 | std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value> | ^ In file included from /usr/include/spdlog/spdlog.h:12, from /home/lu/Downloads/rune_ku/g2o-master/g2o/stuff/logger.h:34, from /home/lu/Downloads/rune_ku/g2o-master/g2o/stuff/property.cpp:32: /usr/include/spdlog/common.h:127:111: error: ‘basic_runtime’ is not a member of ‘fmt’ 127 | std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value> | ^~~~~~~~~~~~~ /usr/include/spdlog/common.h:127:125: error: template argument 2 is invalid 127 | std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value> | ^~~~ /usr/include/spdlog/common.h:127:138: error: expected ‘{’ before ‘>’ token 127 | std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value> | ^ make[2]: *** [g2o/stuff/CMakeFiles/stuff.dir/build.make:79: g2o/stuff/CMakeFiles/stuff.dir/timeutil.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [g2o/stuff/CMakeFiles/stuff.dir/build.make:191: g2o/stuff/CMakeFiles/stuff.dir/logger.cpp.o] Error 1 make[2]: *** [g2o/stuff/CMakeFiles/stuff.dir/build.make:149: g2o/stuff/CMakeFiles/stuff.dir/property.cpp.o] Error 1 [ 6%] Linking CXX shared library ../../../../../lib/libg2o_parser.so [ 6%] Built target parser_library [ 6%] Building CXX object g2o/examples/interactive_slam/slam_parser/interface/CMakeFiles/interface_library.dir/parser_interface.cpp.o [ 6%] Building CXX object g2o/examples/interactive_slam/slam_parser/interface/CMakeFiles/interface_library.dir/slam_context_interface.cpp.o [ 7%] Linking CXX shared library ../../../../../lib/libg2o_interface.so [ 7%] Built target interface_library make[1]: *** [CMakeFiles/Makefile2:1422: g2o/stuff/CMakeFiles/stuff.dir/all] Error 2 make: *** [Makefile:156: all] Error 2
最新发布
06-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值