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

llvm-svn: 25849
This commit is contained in:
Chris Lattner 2006-01-31 16:10:53 +00:00
parent 7a83bb4285
commit b79e962b6b

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