2001-02-21 Tom Tromey <tromey@redhat.com>
+ * automake.in (handle_dist): Introduce new variable to avoid extra
+ keys in %dist_dirs. Fixes distdir.test.
+
* automake.in (handle_texinfo): Only remove suffixes we can
handle.
if (&variable_defined ('EXTRA_DIST'))
{
# FIXME: This should be fixed to work with conditionals. That
- # will require only making the entries in @dist_dirs under the
+ # will require only making the entries in %dist_dirs under the
# appropriate condition. This is meaningful if the nature of
# the distribution should depend upon the configure options
# used.
if (scalar keys %dist_dirs)
{
- # Prepend $(distdir) to each directory given. Doing it via a
- # hash lets us ensure that each directory is used only once.
- grep ($dist_dirs{'$(distdir)/' . $_} = 1, keys %dist_dirs);
- $xform .= &transform ('DISTDIRS', join (' ', sort keys %dist_dirs));
+ # Prepend $(distdir) to each directory given.
+ my %rewritten;
+ grep ($rewritten{'$(distdir)/' . $_} = 1, keys %dist_dirs);
+ $xform .= &transform ('DISTDIRS', join (' ', sort keys %rewritten));
}
else
{