Skip to content

Commit

Permalink
checkincludes.pl: provide usage helper
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luis R. Rodriguez authored and sravnborg committed Sep 20, 2009
1 parent d9a7a2b commit f9d490a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/checkincludes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit f9d490a

Please sign in to comment.