+2006-04-17 Stepan Kasal <kasal@ucw.cz>
+
+ * lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
+ description; eliminate the duplicate error message.
+ * doc/automake.texi (@direntry): `Invoking Automake' is the name
+ of the usage node for `automake'
+ * lib/Automake/Variable.pm (%_gen_varname): Fix typos in the
+ comment.
+
2006-04-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* m4/lispdir.m4 (AM_PATH_LISPDIR): Require Autoconf 2.59c,
@dircategory Individual utilities
@direntry
* aclocal: (automake)Invoking aclocal. Generating aclocal.m4.
-* automake: (automake)Invoking automake. Generating Makefile.in.
+* automake: (automake)Invoking Automake. Generating Makefile.in.
@end direntry
@titlepage
Return the first path for a C<$file_name> in the C<include>s.
We match exactly the behavior of GNU M4: first look in the current
-directory (which includes the case of absolute file names), and, if
-the file is not absolute, just fail. Otherwise, look in C<@include>.
+directory (which includes the case of absolute file names), and then,
+if the file name is not absolute, look in C<@include>.
If the file is flagged as optional (ends with C<?>), then return undef
if absent, otherwise exit with error.
return File::Spec->canonpath ($file_name)
if -e $file_name;
- if (File::Spec->file_name_is_absolute ($file_name))
+ if (!File::Spec->file_name_is_absolute ($file_name))
{
- fatal "$file_name: no such file or directory"
- unless $optional;
- return undef;
- }
-
- foreach my $path (@include)
- {
- return File::Spec->canonpath (File::Spec->catfile ($path, $file_name))
- if -e File::Spec->catfile ($path, $file_name)
+ foreach my $path (@include)
+ {
+ return File::Spec->canonpath (File::Spec->catfile ($path, $file_name))
+ if -e File::Spec->catfile ($path, $file_name)
+ }
}
fatal "$file_name: no such file or directory"
unless $optional;
-
return undef;
}
my @_var_order;
# This keeps track of all variables defined by &_gen_varname.
-# $_gen_varname{$base} is a hash for all variable defined with
-# prefix `$base'. Values stored this this hash are the variable names.
+# $_gen_varname{$base} is a hash for all variables defined with
+# prefix `$base'. Values stored in this hash are the variable names.
# Keys have the form "(COND1)VAL1(COND2)VAL2..." where VAL1 and VAL2
# are the values of the variable for condition COND1 and COND2.
my %_gen_varname = ();