Subversion Repositories Koakuma

Rev

Rev 6 | Rev 12 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 11
Line 1... Line 1...
1
#!/usr/bin/env tclsh
1
#!/usr/bin/env tclsh
2
# $Id: koakuma.cgi.in 6 2024-10-01 22:57:18Z nishi $
2
# $Id: koakuma.cgi.in 11 2024-10-02 00:56:50Z nishi $
3
 
3
 
4
set KOAKUMA_VERSION "1.00"
4
set KOAKUMA_VERSION "1.00"
5
set components ""
5
set components ""
6
 
6
 
7
proc exiting {code} {
7
proc exiting {code} {
Line 368... Line 368...
368
								keyVCS {valueString "$projvcs"}
368
								keyVCS {valueString "$projvcs"}
369
								keyURL {valueString "$url"}
369
								keyURL {valueString "$url"}
370
							}
370
							}
371
						}
371
						}
372
						write_db "[$xmldoc asXML]"
372
						write_db "[$xmldoc asXML]"
-
 
373
						file mkdir "@@PREFIX@@/lib/koakuma/db/data/$projname"
373
						close_projects
374
						close_projects
374
					}
375
					}
375
				}
376
				}
376
			}
377
			}
377
			rputs ""
378
			rputs ""
Line 391... Line 392...
391
		close_projects
392
		close_projects
392
		
393
		
393
		if { "$has_project" != "" } {
394
		if { "$has_project" != "" } {
394
			add_toc "Description"
395
			add_toc "Description"
395
			tputs "[html_escape "$has_project"]"
396
			tputs "[html_escape "$has_project"]"
-
 
397
			add_toc "Details"
-
 
398
			tputs	"<table border=\"0\">"
-
 
399
			tputs	"	<tr>"
-
 
400
			tputs	"		<th>"
-
 
401
			tputs	"			Last run"
-
 
402
			tputs	"		</th>"
-
 
403
			tputs	"		<td>"
-
 
404
			if { [file exists "@@PREFIX@@/lib/koakuma/db/data/$projname/lastrun"] } {
-
 
405
			} else {
-
 
406
				tputs "Was never ran"
-
 
407
			}
-
 
408
			tputs	"			"
-
 
409
			tputs	"		</td>"
-
 
410
			tputs	"	</tr>"
-
 
411
			tputs	"</table>"
396
 
412
 
397
			rputs ""
413
			rputs ""
398
			start_html "Project: $projname" 1
414
			start_html "Project: $projname" 1
399
			rputs "$content"
415
			rputs "$content"
400
			end_html 1
416
			end_html 1