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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25849 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-01-31 16:10:53 +00:00
parent 4477590ef6
commit d9aadd4d15

View File

@ -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...