solaris won't clobber an existing symlink with ln -sf apparently
authorChris Lattner <sabre@nondot.org>
Tue, 31 Jan 2006 16:10:53 +0000 (16:10 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 31 Jan 2006 16:10:53 +0000 (16:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25849 91177308-0d34-0410-b5e6-96231b3b80d8

utils/NightlyTest.pl

index 48e9f3511d6abd317feac1c5fd324c66a27a1c92..fab4949094b26d1ef93fa0cdd1b892c1690fcb2a 100755 (executable)
@@ -847,7 +847,10 @@ my $TestFinishTime = gmtime() . " GMT<br>" . localtime() . " (local)";
 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...