]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
better error message
authorTom Tromey <tromey@redhat.com>
Tue, 5 Aug 1997 23:33:33 +0000 (23:33 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 5 Aug 1997 23:33:33 +0000 (23:33 +0000)
ChangeLog
automake.in

index 4dc6fe1bd1044ea60b7e9b65d85bce9fc1463c00..035fa813044aa543c985e625ccbcf0e1e33a812f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 Tue Aug  5 16:59:41 1997  Tom Tromey  <tromey@cygnus.com>
 
+       * automake.in (require_file_internal): Better error message when
+       installing.
+
        * automake.in (handle_texinfo): Smarter test when deleting output
        of makeinfo.
 
index 27558fdcaba74cdf24276baa3320a92aeca3bdad..039e680d3047a390ae9abca2dd6719ded7321168 100755 (executable)
@@ -5522,7 +5522,7 @@ sub am_primary_prefixes
                # primary, so we explicitly allow it.
                && ! defined $configure_vars{$varname})
            {
-               &am_line_error ($varname, "invalid variable \"$varname\"");
+               &am_line_error ($varname, "invalid variable \`$varname'");
            }
            else
            {
@@ -5787,6 +5787,7 @@ sub require_file_internal
 
                # Only install missing files according to our desired
                # strictness level.
+               local ($message) = "required file \`$errfile' not found";
                if ($add_missing)
                {
                    $suppress = 1;
@@ -5796,29 +5797,29 @@ sub require_file_internal
                        && grep ($_ eq $file, @libtoolize_files)
                        && system ('libtoolize', '--automake'))
                    {
-                       $trailer = "; installing";
+                       $message = "installing \`$errfile'";
                        $suppress = 0;
-                       $trailer .= "; cannot run \`libtoolize': $!";
+                       $trailer = "; cannot run \`libtoolize': $!";
                    }
                    elsif (-f ($am_dir . '/' . $file))
                    {
                        # Install the missing file.  Symlink if we
                        # can, copy if we must.  Note: delete the file
                        # first, in case it is a dangling symlink.
-                       $trailer = "; installing";
+                       $message = "installing \`$errfile'";
                        unlink ($errfile);
                        if ($symlink_exists)
                        {
                            if (! symlink ($am_dir . '/' . $file, $errfile))
                            {
                                $suppress = 0;
-                               $trailer .= "; error while making link: $!\n";
+                               $trailer = "; error while making link: $!\n";
                            }
                        }
                        elsif (! system ('cp', $am_dir . '/' . $file, $errfile))
                        {
                            $suppress = 0;
-                           $trailer .= "\n    error while making link\n";
+                           $trailer = "\n    error while making link\n";
                        }
                    }
                }
@@ -5827,15 +5828,12 @@ sub require_file_internal
                if ($is_configure)
                {
                    # FIXME: allow actual file to be specified.
-                   &am_conf_line_error
-                       ('configure.in', $line,
-                        "required file \"$errfile\" not found$trailer");
+                   &am_conf_line_error ('configure.in', $line,
+                                        "$message$trailer");
                }
                else
                {
-                   &am_line_error
-                       ($line,
-                        "required file \"$errfile\" not found$trailer");
+                   &am_line_error ($line, "$message$trailer");
                }
                $exit_status = $save if $suppress;
            }