Check-in [541903ae15]
Overview
Comment:Updated to include log if available
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:541903ae1524c65575ad4d5559e30bd6b827e403
User & Date: rkeene on 2014-07-20 15:23:44
Other Links: manifest | tags
Context
2014-07-20
15:56
Added storage option and printing of build command check-in: dea912723e user: rkeene tags: trunk
15:23
Updated to include log if available check-in: 541903ae15 user: rkeene tags: trunk
2014-07-19
07:32
Updated to cache trunk builds for a single day check-in: 378b040608 user: rkeene tags: trunk
Changes

Modified build/web/building.cgi from [98cd8538ea] to [f8abb77a8c].

    23     23   		set fd [open [file join $workdir buildinfo]]
    24     24   		set buildinfo_list [gets $fd]
    25     25   		close $fd
    26     26   		array set buildinfo $buildinfo_list
    27     27   		set filename $buildinfo(filename)
    28     28   
    29     29   		set outfile [file join $workdir $filename]
           30  +		set logfile "${outfile}.log"
    30     31   	} else {
    31     32   		set status "Queued"
    32     33   	}
    33     34   }
    34     35   
    35     36   if {[info exists outfile]} {
    36     37   	if {[file exists $outfile]} {
................................................................................
    61     62   puts "\t<head>"
    62     63   puts "\t\t<title>KitCreator, Web Interface</title>"
    63     64   puts "\t</head>"
    64     65   puts "\t<body>"
    65     66   puts "\t\t<h1>KitCreator Web Interface</h1>"
    66     67   puts "\t\t<p><b>Status:</b> $status</p>"
    67     68   if {[info exists url]} {
    68         -puts "\t\t<p><b>URL:</b> <a href=\"$url\">$url</a></p>"
           69  +	puts "\t\t<p><b>URL:</b> <a href=\"$url\">$url</a></p>"
           70  +}
           71  +if {[info exists logfile]} {
           72  +	catch {
           73  +		set fd [open $logfile]
           74  +		set logdata [read $fd]
           75  +		close $fd
           76  +
           77  +
           78  +		puts "\t\t<p><b>Log:</b><pre>\n$logdata</pre></p>"
           79  +	}
    69     80   }
    70     81   puts "\t</body>"
    71     82   puts "</html>"