don't change lots of makefiles.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17810
dc483132-0cff-0310-8789-
dd5450dbe970
+2006-03-30 Ken Raeburn <raeburn@mit.edu>
+
+ * depfix.pl (uniquify): Sort dependencies, so little tweaks to
+ include orders don't change lots of makefiles.
+
2006-03-11 Ken Raeburn <raeburn@mit.edu>
* reconf: Put autoconf.stmp into include directory.
# "gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)"
# -- will sometimes emit duplicate header file names.
local($_) = @_;
+ my(@sides) = split ": ", $_;
+ my($lhs) = "";
+ if ($#sides == 1) {
+ $lhs = $sides[0] . ": ";
+ $_ = $sides[1];
+ }
my(@words) = split " ", $_;
my($w);
my($result) = "";
my(%seen);
undef %seen;
- foreach $w (@words) {
+ foreach $w (sort { $a cmp $b; } @words) {
next if defined($seen{$w});
$seen{$w} = 1;
if ($result ne "") { $result .= " "; }
$result .= $w;
}
- return $result . " ";
+ return $lhs . $result . " ";
}
sub split_lines {