1998-12-02 Tom Tromey <tromey@cygnus.com>
+ Some bugs from François Pinard:
+ * automake.in (usage): Remove duplicates in file list.
+
* automake.in (usage): Print files in column-major order.
(handle_gettext): Only require ABOUT-NLS for GNU programs.
print $USAGE;
print "\nFiles which are automatically distributed, if found:\n";
$~ = "USAGE_FORMAT";
- local (@lcomm) = sort ((@common_files, @common_sometimes));
- local ($one, $two, $three, $four, $i, $max);
+ local ($last, $iter, @lcomm);
+ $last = '';
+ foreach $iter (sort ((@common_files, @common_sometimes)))
+ {
+ push (@lcomm, $iter) unless $iter eq $last;
+ $last = $iter;
+ }
+ local ($one, $two, $three, $four, $i, $max);
$max = int (($#lcomm + 1) / 4);
for ($i = 0; $i < $max; ++$i)