projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Wed 2/3/10 13:04

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Wed 2/3/10 13:04
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 12:38
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 12:27
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 9:26
Michael Larabel  
pts: Drop MD5 hashes in... 
Tue 2/2/10 23:43
Michael Larabel  
phoromatic: Add... 
Tue 2/2/10 23:35
Michael Larabel  
pts-core: Phoromatic... 
 
> --git a/pts-core/functions/pts-functions.php b/pts-core/functions/pts-functions.php
index f2f7c48
..7e1a4b2 100644
--- a/pts-core/functions/pts-functions.php
+++ b/pts-core/functions/pts-functions.php
@@ -119,+119,11 @@ function pts_benchmark_type($identifier)
     else
         return 
false;
 }
+function 
pts_copy($from$to)
+{
+    if(!
is_file($to) || md5_file($from) != md5_file($to))
+        
copy($from$to);
+}
 function 
pts_save_result($save_to null$save_results null$directory null)
 {
     if(
$directory == null)
@@ -
135,12 +140,13 @@ function pts_save_result($save_to null$save_results null$directory nul
     
if(!is_dir($directory "pts-results-viewer"))
     {
         
mkdir($directory "pts-results-viewer");
-        
copy("pts-core/pts-results-viewer/phoronix-test-suite.gif"$directory "pts-results-viewer/phoronix-test-suite.gif");
-        
copy("pts-core/pts-results-viewer/pts.js"$directory "pts-results-viewer/pts.js");
-        
copy("pts-core/pts-results-viewer/viewer.xsl"$directory "pts-results-viewer/viewer.xsl");
-        
copy("pts-core/pts-results-viewer/pts-viewer.css"$directory "pts-results-viewer/pts-viewer.css");
     }

+    
pts_copy("pts-core/pts-results-viewer/phoronix-test-suite.gif"$directory "pts-results-viewer/phoronix-test-suite.gif");
+    
pts_copy("pts-core/pts-results-viewer/pts.js"$directory "pts-results-viewer/pts.js");
+    
pts_copy("pts-core/pts-results-viewer/viewer.xsl"$directory "pts-results-viewer/viewer.xsl");
+    
pts_copy("pts-core/pts-results-viewer/pts-viewer.css"$directory "pts-results-viewer/pts-viewer.css");
+
     if(
$save_to == null || $save_results == null)
         
$bool true;
     else
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2010 by Phoronix Media