From 6568b5feaacb99cabd542e8b132cba01588d82d0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 10 Apr 1999 22:22:01 +0000 Subject: [PATCH] * automake.in (am_install_var): Remove redundancies from the result. Fixes test cond8.test. --- ChangeLog | 3 +++ automake.in | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2da6e3c..bf5b1e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-04-10 Tom Tromey + * automake.in (am_install_var): Remove redundancies from the + result. Fixes test cond8.test. + * automake.in (handle_single_transform_list): Handle dependency tracking when files are created in subdirs. Error if object in subdir has `..' component. diff --git a/automake.in b/automake.in index 78295f3..9766772 100755 --- a/automake.in +++ b/automake.in @@ -7106,7 +7106,12 @@ sub am_install_var push (@all, '$(' . $primary . ')') if @used && $primary ne 'JAVA'; - return (@result); + # Make the result unique. This lets the user use conditionals in + # a natural way, but still lets us program lazily -- we don't have + # to worry about handling a particular object more than once. + local (%uniquify) = (); + grep ($uniquify{$_} = 1, @result); + return sort keys %uniquify; } -- 2.7.4