summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMichael Brown2005-04-17 18:24:36 +0200
committerMichael Brown2005-04-17 18:24:36 +0200
commit6e4888400ce107d4d569dbbe69aa2483ef33c55c (patch)
treeb5cc5334cf42375ead3837ce693e3f2b1d2b612a /src/util
parentSerial port configuration moved to config.h (diff)
downloadipxe-6e4888400ce107d4d569dbbe69aa2483ef33c55c.tar.gz
ipxe-6e4888400ce107d4d569dbbe69aa2483ef33c55c.tar.xz
ipxe-6e4888400ce107d4d569dbbe69aa2483ef33c55c.zip
Avoid deleting .cvsignore
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/mkconfig.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/mkconfig.pl b/src/util/mkconfig.pl
index 7850661a..6a9c2f14 100755
--- a/src/util/mkconfig.pl
+++ b/src/util/mkconfig.pl
@@ -48,13 +48,13 @@ sub file_mtime {
return $stat->mtime;
}
-# Read a directory listing (excluding the . and .. entries)
+# Read all the .h files in a directory
#
sub read_dir {
my $dir = shift;
opendir my $dh, $dir or die "Could not open directory $dir: $!\n";
- my @entries = grep { ! /^(\.)+$/ } readdir $dh;
+ my @entries = grep { /\.h$/ } readdir $dh;
closedir $dh;
return @entries;
}