[llvm-commits] CVS: llvm/utils/NightlyTest.pl

Chris Lattner lattner at cs.uiuc.edu
Tue Jan 31 08:11:05 PST 2006



Changes in directory llvm/utils:

NightlyTest.pl updated: 1.101 -> 1.102
---
Log message:

solaris won't clobber an existing symlink with ln -sf apparently


---
Diffs of the changes:  (+4 -1)

 NightlyTest.pl |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm/utils/NightlyTest.pl
diff -u llvm/utils/NightlyTest.pl:1.101 llvm/utils/NightlyTest.pl:1.102
--- llvm/utils/NightlyTest.pl:1.101	Sun Dec 11 13:55:39 2005
+++ llvm/utils/NightlyTest.pl	Tue Jan 31 10:10:53 2006
@@ -847,7 +847,10 @@
 my $TestPlatform = `uname -a`;
 eval "\$Output = <<ENDOFFILE;$TemplateContents\nENDOFFILE\n";
 WriteFile "$DATE.html", $Output;
-system ( "ln -sf $DATE.html index.html" );
+
+# Remove the symlink before creating it for systems that don't have "ln -sf".
+system ("rm index.html");
+system ("ln -s $DATE.html index.html");
 
 # Change the index.html symlink...
 






More information about the llvm-commits mailing list