lkml.org 
[lkml]   [2009]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/3] checkincludes.pl: provide usage helper
Date
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
scripts/checkincludes.pl | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/scripts/checkincludes.pl b/scripts/checkincludes.pl
index 32ebff6..4bff139 100755
--- a/scripts/checkincludes.pl
+++ b/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";

--
1.6.3.3


\
 
 \ /
  Last update: 2009-08-06 02:53    [W:0.086 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site