]> sourceware.org Git - automake.git/commitdiff
* automake.in (&handle_options): Change the RE so that the third
authorAkim Demaille <akim@epita.fr>
Mon, 5 Mar 2001 19:29:15 +0000 (19:29 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 5 Mar 2001 19:29:15 +0000 (19:29 +0000)
part of the versions always exist.
(&file_contents): Don't pass uninitialized values to &transform.

ChangeLog
automake.in

index 4574fd7f34ad0dde29bcafe15a0c5edcc62ee931..425648c108474297342aec560a5c0c7c020b099c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-03-05  Akim Demaille  <akim@epita.fr>
+
+       * automake.in (&handle_options): Change the RE so that the third
+       part of the versions always exist.
+       (&file_contents): Don't pass uninitialized values to &transform.
+
 2001-03-05  Akim Demaille  <akim@epita.fr>
 
        * automake.in (&file_contents): Require a hash as second argument.
index 89ddfcb6eb0d8c0020d0045d0c03c4c0366a947b..9757d01412700d1383faab43f877fd34b16d2b1c 100755 (executable)
@@ -1185,14 +1185,14 @@ sub handle_options
            {
                $use_dependencies = 0;
            }
-           elsif (/([0-9]+)\.([0-9]+)([a-z])?/)
+           elsif (/([0-9]+)\.([0-9]+)([a-z]?)/)
            {
                # Got a version number.
 
                my ($rmajor, $rminor, $ralpha) = ($1, $2, $3);
 
                &prog_error ("version is incorrect: $VERSION")
-                   if $VERSION !~ /([0-9]+)\.([0-9]+)([a-z])?/;
+                   if $VERSION !~ /([0-9]+)\.([0-9]+)([a-z]?)/;
 
                my ($tmajor, $tminor, $talpha) = ($1, $2, $3);
 
@@ -6634,14 +6634,14 @@ sub file_contents ($%)
                      'MAINTAINER-MODE'
                      => $seen_maint_mode ? '@MAINTAINER_MODE_TRUE@' : '',
 
-                     'SHAR'        => $options{'dist-shar'},
-                     'BZIP2'       => $options{'dist-bzip2'},
-                     'ZIP'         => $options{'dist-zip'},
-                     'COMPRESS'    => $options{'dist-tarZ'},
+                     'SHAR'        => $options{'dist-shar'} || 0,
+                     'BZIP2'       => $options{'dist-bzip2'} || 0,
+                     'ZIP'         => $options{'dist-zip'} || 0,
+                     'COMPRESS'    => $options{'dist-tarZ'} || 0,
 
                      'INSTALL-INFO' => !$options{'no-installinfo'},
                      'INSTALL-MAN'  => !$options{'no-installman'},
-                     'CK-NEWS'      => $options{'check-news'},
+                     'CK-NEWS'      => $options{'check-news'} || 0,
 
                      'SUBDIRS'      => &variable_defined ('SUBDIRS'),
                      'CONFIGURE-AC' => $configure_ac,
This page took 0.041348 seconds and 5 git commands to generate.