]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* lib/Autom4te/FileUtils.pm (find_file): Fix a typo in the
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 17 Apr 2006 12:14:07 +0000 (12:14 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 17 Apr 2006 12:14:07 +0000 (12:14 +0000)
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.

ChangeLog
doc/automake.texi
doc/stamp-vti
doc/version.texi
lib/Automake/FileUtils.pm
lib/Automake/Variable.pm

index 2ca3251b0e9b7bbe32af7040c98de4c0c2adc898..a47e221d947308b845f760160b30926912ede203 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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,
index 5c00018f44e5faf3a1c896ad2b5158070901a1d8..b8821beaa7e8b7509f61b1513074324e374865c1 100644 (file)
@@ -43,7 +43,7 @@ published by the Free Software Foundation raise funds for
 @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
index 73fcf7acf84c296d6db73be2b6a1026109516641..b0e56d43dc36252a9fd6c58719774dc916d4a706 100644 (file)
@@ -1,4 +1,4 @@
-@set UPDATED 9 April 2006
+@set UPDATED 17 April 2006
 @set UPDATED-MONTH April 2006
 @set EDITION 1.9a
 @set VERSION 1.9a
index 73fcf7acf84c296d6db73be2b6a1026109516641..b0e56d43dc36252a9fd6c58719774dc916d4a706 100644 (file)
@@ -1,4 +1,4 @@
-@set UPDATED 9 April 2006
+@set UPDATED 17 April 2006
 @set UPDATED-MONTH April 2006
 @set EDITION 1.9a
 @set VERSION 1.9a
index 470249cd09744365d40cca061b9c4573bc0e84b0..3524dd409c561d0ef65661b1d29d81cb483198d6 100644 (file)
@@ -52,8 +52,8 @@ use vars qw (@ISA @EXPORT);
 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.
@@ -76,22 +76,17 @@ sub find_file ($@)
   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;
 }
 
index 1f89c5fe15538358d7019068932d96f18d4258bd..96e405e590680614e6204ca6ce17523dc8694b6d 100644 (file)
@@ -137,8 +137,8 @@ my $_VARIABLE_PATTERN = '^[.A-Za-z0-9_@]+' . "\$";
 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 = ();