[llvm-commits] CVS: llvm/utils/NightlyTest.pl
Brian Gaeke
gaeke at cs.uiuc.edu
Fri Jun 11 15:01:01 PDT 2004
Changes in directory llvm/utils:
NightlyTest.pl updated: 1.54 -> 1.55
---
Log message:
Don't trim @PrevDays (causing an error) if it isn't long enough.
---
Diffs of the changes: (+3 -1)
Index: llvm/utils/NightlyTest.pl
diff -u llvm/utils/NightlyTest.pl:1.54 llvm/utils/NightlyTest.pl:1.55
--- llvm/utils/NightlyTest.pl:1.54 Fri Jun 11 02:06:22 2004
+++ llvm/utils/NightlyTest.pl Fri Jun 11 14:55:30 2004
@@ -655,7 +655,9 @@
#
my @PrevDays = map {s/.html//; $_} GetDir ".html";
-splice @PrevDays, 20; # Trim down list to something reasonable...
+if ((scalar @PrevDays) > 20) {
+ splice @PrevDays, 20; # Trim down list to something reasonable...
+}
my $PrevDaysList = # Format list for sidebar
join "\n ", map { "<a href=\"$_.html\">$_</a><br>" } @PrevDays;
More information about the llvm-commits
mailing list