wok-4.x view tazbb/stuff/web/index.php @ rev 3512
Add Tazbb (SliTaz Build Bot)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jun 20 04:41:53 2009 +0200 (2009-06-20) |
parents | |
children | 3a4db8353759 |
line source
1 <?php
2 include("conf.php");
3 ?>
4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <head>
8 <title>SliTaz Build Bot</title>
9 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
10 <meta name="description" content="Tazbb web interface" />
11 <meta name="robots" content="index nofollow" />
12 <link rel="shortcut icon" href="favicon.ico" />
13 <link rel="stylesheet" type="text/css" href="slitaz.css" />
14 </head>
16 <body bgcolor="#ffffff">
17 <!-- Header -->
18 <div id="header">
19 <a name="top"></a>
20 <!-- Access -->
21 <div id="access">
22 <a href="http://forum.slitaz.org/">Forum</a>
23 <a href="http://wiki.slitaz.org/">Wiki</a>
24 <a href="http://art.slitaz.org/">Art</a>
25 <a href="http://labs.slitaz.org/">Labs</a>
26 <a href="http://pkgs.slitaz.org/">Packages</a>
27 <a href="http://hg.slitaz.org/">Hg</a>
28 </div>
29 <a href="http://bb.slitaz.org/"><img id="logo"
30 src="pics/website/logo.png" title="bb.slitaz.org" alt="bb.slitaz.org"
31 style="border: 0px solid ; width: 200px; height: 74px;" /></a>
32 <p id="titre">#!/bb/packages</p>
33 </div>
35 <!-- Content top. -->
36 <div id="content_top">
37 <div class="top_left"></div>
38 <div class="top_right"></div>
39 </div>
41 <!-- Content -->
42 <div id="content">
44 <h1><font color="#3E1220">Build Bot</font></h1>
45 <h2><font color="#DF8F06">/usr/bin/tazbb</font></h2>
47 <p>
48 Tazbb is <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a> Build Bot,
49 it automaticaly cook and test packages commited in the wok. SliTaz
50 <a href="http://pkgs.slitaz.org/">packages</a> are cooked on the project
51 main server: code name <a href="http://tank.slitaz.org">Tank</a>. This
52 web interface give the current status of the build bot and the last report
53 about all packages modified by SliTaz contributors in the Mercurial
54 repository, aka <a href="http://hg.slitaz.org/">Hg repos</a>.
55 </p>
57 <p>
58 <form action="log.php" method="get">
59 Show cooklog: <input type="text" name="package" />
60 <!-- <input type="submit" value="Show" /> -->
61 </form>
62 </p>
64 <h3>Summary</h3>
65 <pre class="package">
66 <?php
68 // Check curent status (update in real time) and display summary.
70 if (file_exists($lockfile)) {
71 echo "Status : Running ";
72 include("$db_dir/running");
73 }
74 else {
75 echo "Status : Not currently running\n";
76 }
77 include("$db_dir/summary");
79 ?>
80 </pre>
82 <h3>Report</h3>
83 <pre class="package">
84 <?php
85 include("$db_dir/report");
86 ?>
87 </pre>
89 <h3>Cooklist</h3>
90 <pre class="package">
91 <?php
92 include("$db_dir/cooklist");
93 ?>
94 </pre>
96 <h3>Unbuilt</h3>
97 <pre class="package">
98 <?php
99 include("$db_dir/unbuilt.urls");
100 ?>
101 </pre>
103 <h3>Blocked</h3>
104 <pre class="package">
105 <?php
106 include("$db_dir/blocked.urls");
107 ?>
108 </pre>
110 <h3>Corrupted</h3>
111 <pre class="package">
112 <?php
113 include("$db_dir/corrupted");
114 ?>
115 </pre>
117 <h3>Last cooked packages</h3>
118 <pre class="package">
119 <?php
120 system("cd $packages && ls -1t *.tazpkg | head -20 | \
121 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
122 cut -d. -f1); echo ' '\$file; done"); ?>
123 </pre>
125 <h3>Last removed packages</h3>
126 <pre class="package">
127 <?php
128 include("$db_dir/removed");
129 ?>
130 </pre>
132 <!-- End of content with round corner -->
133 </div>
134 <div id="content_bottom">
135 <div class="bottom_left"></div>
136 <div class="bottom_right"></div>
137 </div>
139 <!-- Start of footer and copy notice -->
140 <div id="copy">
141 <p>
142 Copyright © 2009 <a href="http://www.slitaz.org/">SliTaz</a> -
143 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
144 </p>
145 <!-- End of copy -->
146 </div>
148 <!-- Bottom and logo's -->
149 <div id="bottom">
150 <p>
151 <a href="http://validator.w3.org/check?uri=referer"><img
152 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
153 title="Code validé XHTML 1.0"
154 style="width: 80px; height: 15px;" /></a>
155 </p>
156 </div>
158 </body>
159 </html>