1 Star 0 Fork 0

202108010313-王春宇/openflow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
soexpand.pl 569 Bytes
一键复制 编辑 原始数据 按行查看 历史
use strict;
use warnings;
use Getopt::Long;
my ($exit_code) = 0;
my (@include_dirs);
Getopt::Long::Configure ("bundling");
GetOptions("I|include=s" => \@include_dirs) or exit(1);
@include_dirs = ('.') if !@include_dirs;
OUTER: while (<STDIN>) {
if (my ($name) = /^\.so (\S+)$/) {
foreach my $dir (@include_dirs, '.') {
if (open(INNER, "$dir/$name")) {
while (<INNER>) {
print $_;
}
close(INNER);
next OUTER;
}
}
print STDERR "$name not found in: ", join(' ', @include_dirs), "\n";
$exit_code = 1;
}
print $_;
}
exit $exit_code;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangchunyu0202/openflow.git
git@gitee.com:wangchunyu0202/openflow.git
wangchunyu0202
openflow
openflow
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385