Commit f9d490ab authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Sam Ravnborg

checkincludes.pl: provide usage helper

Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment