]> sourceware.org Git - automake.git/commitdiff
* automake.in ($am_file): Use vars.
authorAkim Demaille <akim@epita.fr>
Mon, 5 Mar 2001 13:25:21 +0000 (13:25 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 5 Mar 2001 13:25:21 +0000 (13:25 +0000)
($am_file_name, $in_file_name): Private to &generate_makefile.

ChangeLog
automake.in

index 0463eef473c96573c754005b40cdda71e4995d1b..ac66422803fbd8d3ac1bdea908e6a810e1faabd2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-05  Akim Demaille  <akim@epita.fr>
+
+       * automake.in ($am_file): Use vars.
+       ($am_file_name, $in_file_name): Private to &generate_makefile.
+
 2001-03-05  Akim Demaille  <akim@epita.fr>
 
        * automake.in: Preparation for `use strict': Move the
index a70fdfae5a1b45dc4d00d47a2662a287a3f50284..fe62f71aa903f794fd3f9b87720fe02e0993deb1 100755 (executable)
@@ -372,11 +372,6 @@ my %vars_scanned = ();
 my $maint_charset = '';
 my $dist_charset = 'utf8';             # recode doesn't support this yet.
 
-# Name of input file ("Makefile.in") and output file ("Makefile.am").
-# These have no directory components.
-my $am_file_name = '';
-my $in_file_name = '';
-
 # TRUE if --cygnus seen.
 my $cygnus_mode = 0;
 
@@ -496,6 +491,7 @@ die "$me: no \`Makefile.am' found or specified\n"
 
 # Now do all the work on each file.
 # This guy must be local otherwise it's private to the loop.
+use vars '$am_file';
 local $am_file;
 foreach $am_file (@input_files)
 {
@@ -641,8 +637,10 @@ sub generate_makefile
 {
     my ($output, $makefile) = @_;
 
-    ($am_file_name = $makefile) =~ s/^.*\///;
-    $in_file_name = $am_file_name . '.in';
+    # Name of input file ("Makefile.in") and output file
+    # ("Makefile.am").  These have no directory components.
+    (my $am_file_name = $makefile) =~ s/^.*\///;
+    my $in_file_name = $am_file_name . '.in';
     $am_file_name .= '.am';
 
     # $OUTPUT is encoded.  If it contains a ":" then the first element
This page took 0.046502 seconds and 5 git commands to generate.