Ai
6 Star 10 Fork 17

OpenCloudOS/OpenCloudOS-Kernel-Stream

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
split-man.pl 604 Bytes
一键复制 编辑 原始数据 按行查看 历史
Finn Behrens 提交于 2020-11-23 22:15 +08:00 . tweewide: Fix most Shebang lines
#!/usr/bin/env perl
# SPDX-License-Identifier: GPL-2.0
#
# Author: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
#
# Produce manpages from kernel-doc.
# See Documentation/doc-guide/kernel-doc.rst for instructions
if ($#ARGV < 0) {
die "where do I put the results?\n";
}
mkdir $ARGV[0],0777;
$state = 0;
while (<STDIN>) {
if (/^\.TH \"[^\"]*\" 9 \"([^\"]*)\"/) {
if ($state == 1) { close OUT }
$state = 1;
$fn = "$ARGV[0]/$1.9";
print STDERR "Creating $fn\n";
open OUT, ">$fn" or die "can't open $fn: $!\n";
print OUT $_;
} elsif ($state != 0) {
print OUT $_;
}
}
close OUT;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel-Stream.git
git@gitee.com:OpenCloudOS/OpenCloudOS-Kernel-Stream.git
OpenCloudOS
OpenCloudOS-Kernel-Stream
OpenCloudOS-Kernel-Stream
ocks-2401

搜索帮助