summaryrefslogtreecommitdiff
path: root/check-module
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-28 11:55:41 +0000
committerJim Meyering <jim@meyering.net>2005-06-28 11:55:41 +0000
commit2ef643a4f33ad334090ad5b23f542997f9c4b3c2 (patch)
treed456e3554189f4314bf898bf035efe1d4357a40a /check-module
parent45c54cc69b929dbd023f467bbe99be3b55cf124c (diff)
downloadgnulib-2ef643a4f33ad334090ad5b23f542997f9c4b3c2.tar.gz
(find_included_lib_files): Hard-code another
pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h but the fts-lgpl (correctly) does not list those files.
Diffstat (limited to 'check-module')
-rwxr-xr-xcheck-module7
1 files changed, 5 insertions, 2 deletions
diff --git a/check-module b/check-module
index 4d01f83873..9bfa133133 100755
--- a/check-module
+++ b/check-module
@@ -14,7 +14,7 @@ use strict;
use Getopt::Long;
#use Coda;
-(my $VERSION = '$Revision: 1.1 $ ') =~ tr/[0-9].//cd;
+(my $VERSION = '$Revision: 1.2 $ ') =~ tr/[0-9].//cd;
(my $ME = $0) =~ s|.*/||;
use constant ST_INIT => 1;
@@ -151,6 +151,9 @@ sub find_included_lib_files ($)
and next;
$file =~ /\bhash\.c$/ && $line eq 'obstack.h'
and next;
+ $file =~ /\bfts\.c$/ &&
+ ($line eq 'fts-cycle.c' || $line eq 'unistd-safer.h')
+ and next;
$inc{$line} = 1;
}
@@ -198,7 +201,7 @@ sub find_included_lib_files ($)
'unlocked-io.h' => 1,
# Give gettext.h a free pass only when included from lib/error.c,
- # since that we've made that exception solely to make the error
+ # since we've made that exception solely to make the error
# module easier to use -- at RMS's request.
'lib/error.c:gettext.h' => 1,
);