You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2008/03/24 19:06:49 UTC

svn commit: r640489 - /stdcxx/trunk/bin/xcomp.awk

Author: sebor
Date: Mon Mar 24 11:06:32 2008
New Revision: 640489

URL: http://svn.apache.org/viewvc?rev=640489&view=rev
Log:
2008-03-24  Martin Sebor  <se...@roguewave.com>

	* bin/xcomp.awk (print_section): Consistently prepended "../" to the
	log file name since build logs are stored in the parent directory of
	the one that contains the cross-build results.

Modified:
    stdcxx/trunk/bin/xcomp.awk

Modified: stdcxx/trunk/bin/xcomp.awk
URL: http://svn.apache.org/viewvc/stdcxx/trunk/bin/xcomp.awk?rev=640489&r1=640488&r2=640489&view=diff
==============================================================================
--- stdcxx/trunk/bin/xcomp.awk (original)
+++ stdcxx/trunk/bin/xcomp.awk Mon Mar 24 11:06:32 2008
@@ -1233,20 +1233,11 @@
 
         logname = logfnames [i]
 
-        # strip the leading directory prefix, if any
-        pos = match(logname, "/[^/]+$")
-        if (0 < pos)
-            loggzfname = substr(logname, pos + 1)
-
-        # insert the .gz suffix before the final .txt suffix
-        # to form the name of the original gzipped log file
-        # prepend "../" to the file name since the logs are
-        # in the parent directory
-        loggzfname = substr(loggzfname, 1, index(loggzfname, ".txt") - 1)
-        loggzfname = "../" loggzfname ".gz.txt"
+        # strip directory prefix from file name
+        loghref = get_gzlogfname(logname)
 
-        colnos = colnos "          <td title=\"" loggzfname "\">"
-        colnos = colnos "<a href=\"" loggzfname "\">" i "</a></td>"
+        colnos = colnos "          <td title=\"" loghref "\">"
+        colnos = colnos "<a href=\"" loghref "\">" i "</a></td>"
 
         buildtype = get_buildtype(logname)
         buildmode = buildmodes [buildtype]
@@ -1742,7 +1733,7 @@
     # replace the trailing .txt suffix with .gz.txt
     sub("\\.txt$", ".gz.txt", fref)
 
-    return fref
+    return "../" fref
 }