diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2002-03-29 15:38:09 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2002-03-29 15:38:09 +0000 |
| commit | 1a22f43da847734f86fe8243b1e36d080ac9e10f (patch) | |
| tree | 7515c887e7813dabbdda5130c50168895cd7c327 /gnu | |
| parent | 40da09802f45c073abdbd8db4a2e852327988306 (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/man/makewhatis/makewhatis.perl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/man/makewhatis/makewhatis.perl b/gnu/usr.bin/man/makewhatis/makewhatis.perl index 2bb0e138a887..33cee6570c17 100644 --- a/gnu/usr.bin/man/makewhatis/makewhatis.perl +++ b/gnu/usr.bin/man/makewhatis/makewhatis.perl @@ -180,6 +180,7 @@ sub parse_dir { if ($subdir =~ /^man\w+$/) { $subdir = "$dir/$subdir"; &parse_subdir($subdir); + &parse_subdir($subdir) if -d ($subdir .= "/${machine}"); } } closedir DIR @@ -439,6 +440,7 @@ sub variables { $whatis_name = "whatis"; # Default name for DB $append = 0; # Don't delete old entries $locale = 0; # Build DB only for localized man directories + chomp($machine = $ENV{'MACHINE'} || `uname -m`); # choose localized man directories suffix. $local_suffix = $ENV{'LC_ALL'} || $ENV{'LC_CTYPE'} || $ENV{'LANG'}; |
