From 512ff6010cc06a9f37c2d5e43a643f93c58a20cf Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 20 Jun 1999 08:01:34 +0000 Subject: [PATCH] * automake.in (handle_dist_worker): Remove redundant entries from DIST_SUBDIRS. --- ChangeLog | 3 +++ automake.in | 15 ++++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 510281b4..d1ef30fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-06-19 Tom Tromey + * automake.in (handle_dist_worker): Remove redundant entries from + DIST_SUBDIRS. + * automake.in (handle_lib_objects_cond): Better error message when unrecognized option passed in LDADD. diff --git a/automake.in b/automake.in index a6dad577..36a0cc65 100755 --- a/automake.in +++ b/automake.in @@ -2720,9 +2720,18 @@ sub handle_dist_worker $dist_subdir_name = 'DIST_SUBDIRS'; if (! &variable_defined ('DIST_SUBDIRS')) { - &define_pretty_variable ('DIST_SUBDIRS', '', - &variable_value_as_list ('SUBDIRS', - 'all')); + local (@full_list) = &variable_value_as_list ('SUBDIRS', + 'all'); + local (@ds_list, %uniq, $iter); + foreach $iter (@full_list) + { + if (! defined $uniq{$iter}) + { + $uniq{$iter} = 1; + push (@ds_list, $iter); + } + } + &define_pretty_variable ('DIST_SUBDIRS', '', @ds_list); } } else -- 2.43.5