Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

checkincludes.pl: provide usage helper

parent d9a7a2bd
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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";