aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkincludes.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/checkincludes.pl b/scripts/checkincludes.pl
index 32ebff659fc..4bff13985eb 100755
--- a/scripts/checkincludes.pl
+++ b/scripts/checkincludes.pl
@@ -3,6 +3,15 @@
3# checkincludes: Find files included more than once in (other) files. 3# checkincludes: Find files included more than once in (other) files.
4# Copyright abandoned, 2000, Niels Kristian Bech Jensen <nkbj@image.dk>. 4# Copyright abandoned, 2000, Niels Kristian Bech Jensen <nkbj@image.dk>.
5 5
6sub usage {
7 print "Usage: checkincludes.pl <file list>\n";
8 exit 1;
9}
10
11if ($#ARGV < 0) {
12 usage();
13}
14
6foreach $file (@ARGV) { 15foreach $file (@ARGV) {
7 open(FILE, $file) or die "Cannot open $file: $!.\n"; 16 open(FILE, $file) or die "Cannot open $file: $!.\n";
8 17