Skip to content

Commit f9d490a

Browse files
Luis R. Rodriguezsravnborg
authored andcommitted
checkincludes.pl: provide usage helper
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
1 parent d9a7a2b commit f9d490a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎scripts/checkincludes.pl‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
# checkincludes: Find files included more than once in (other) files.
44
# Copyright abandoned, 2000, Niels Kristian Bech Jensen <nkbj@image.dk>.
55

6+
sub usage {
7+
print "Usage: checkincludes.pl <file list>\n";
8+
exit 1;
9+
}
10+
11+
if ($#ARGV < 0) {
12+
usage();
13+
}
14+
615
foreach $file (@ARGV) {
716
open(FILE, $file) or die "Cannot open $file: $!.\n";
817

0 commit comments

Comments
 (0)