提交 f9d490ab 编写于 作者: L Luis R. Rodriguez 提交者: Sam Ravnborg

checkincludes.pl: provide usage helper

Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 d9a7a2bd
......@@ -3,6 +3,15 @@
# checkincludes: Find files included more than once in (other) files.
# Copyright abandoned, 2000, Niels Kristian Bech Jensen <nkbj@image.dk>.
sub usage {
print "Usage: checkincludes.pl <file list>\n";
exit 1;
}
if ($#ARGV < 0) {
usage();
}
foreach $file (@ARGV) {
open(FILE, $file) or die "Cannot open $file: $!.\n";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册