| Submitter | Andrew Morton |
|---|---|
| Date | 2009-09-18 19:49:26 |
| Message ID | <200909181949.n8IJnQ40018998@imap1.linux-foundation.org> |
| Download | mbox | patch |
| Permalink | /patch/48615/ |
| State | New |
| Headers | show |
Comments
Patch
diff -puN scripts/checkincludes.pl~checkincludespl-provide-usage-helper scripts/checkincludes.pl --- a/scripts/checkincludes.pl~checkincludespl-provide-usage-helper +++ a/scripts/checkincludes.pl @@ -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";