wok-current view tazbb/stuff/web/index.php @ rev 7861
tazbb: year 2011
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 01 19:20:04 2011 +0100 (2011-01-01) |
parents | 40dc53a88848 |
children | 9140fe580c2b |
line source
1 <?php
2 $version='cooking';
3 $notversion='stable';
4 $wok='wok';
5 if (isset($_GET['stable'])) {
6 $version='stable';
7 $notversion='cooking';
8 $wok='wok-stable';
9 }
10 include("conf.php");
11 ?>
12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
13 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
14 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
15 <head>
16 <title>SliTaz Build Bot</title>
17 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
18 <meta name="description" content="Tazbb web interface" />
19 <meta name="robots" content="index nofollow" />
20 <link rel="shortcut icon" href="favicon.ico" />
21 <link rel="stylesheet" type="text/css" href="slitaz.css" />
22 </head>
24 <body bgcolor="#ffffff">
25 <!-- Header -->
26 <div id="header">
27 <a name="top"></a>
28 <!-- Access -->
29 <div id="access">
30 <a href="/<?php if ($version != 'stable')
31 echo "?stable"; ?>" title="Slitaz <?php
32 echo $notversion ?> packages"><?php echo $notversion ?></a>
33 </div>
34 <a href="http://bb.slitaz.org/"><img id="logo"
35 src="pics/website/logo.png" title="bb.slitaz.org" alt="bb.slitaz.org"
36 style="border: 0px solid ; width: 200px; height: 74px;" /></a>
37 <p id="titre">#!/bb/packages/<?php echo $version; ?></p>
38 </div>
40 <!-- Navigation menu -->
41 <div id="nav">
43 <div class="nav_box">
44 <h4>SliTaz Network</h4>
45 <ul>
46 <li><a href="http://www.slitaz.org/">Main Website</a></li>
47 <li><a href="http://doc.slitaz.org/">Documentation</a></li>
48 <li><a href="http://forum.slitaz.org/">Community Forum</a></li>
49 <li><a href="http://labs.slitaz.org/">SliTaz Labs</a></li>
50 <li><a href="http://pkgs.slitaz.org/">Packages Database</a></li>
51 <li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
52 <li><a href="http://www.distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
53 </ul>
54 </div>
56 <div class="nav_box">
57 <h4>SliTaz Developers</h4>
58 <ul>
59 <li><a href="http://hg.slitaz.org/">Hg Repositories</a></li>
60 <li><a href="http://tank.slitaz.org/">Tank Server</a></li>
61 <li><a href="http://people.slitaz.org/">People Stuff</a></li>
62 <li><a href="http://labs.slitaz.org/wiki/distro">Distro Wiki</a></li>
64 </ul>
65 </div>
67 <!-- End navigation menu -->
68 </div>
70 <!-- Content top. -->
71 <div id="content_top">
72 <div class="top_left"></div>
73 <div class="top_right"></div>
74 </div>
76 <!-- Content -->
77 <div id="content">
79 <h1><font color="#3E1220">Build Bot</font></h1>
80 <h2><font color="#DF8F06">/usr/bin/tazbb</font></h2>
82 <p>
83 Tazbb is a <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a> Build Bot,
84 it automatically cooks and tests packages commited in the wok. SliTaz
85 <a href="http://pkgs.slitaz.org/">packages</a> are cooked on the project
86 main server: code name <a href="http://tank.slitaz.org">Tank</a>. This
87 web interface gives the current status of the build bot and the last report
88 about any packages modified by the SliTaz contributors in the Mercurial
89 repositories, aka <a href="http://hg.slitaz.org/">Hg repos</a>.
90 </p>
92 <form action="log.php" method="get">
93 <?php
94 if ($version == 'stable')
95 echo '<input type="hidden" name="stable" value="1" />';
96 ?> Show cooklog: <input type="text" name="package" />
97 <!-- <input type="submit" value="Show" /> -->
98 </form>
100 <h3>Summary</h3>
101 <pre class="package">
102 <?php
104 // Check curent status (update in real time) and display summary.
106 if (file_exists($lockfile)) {
107 echo "Status : Running ";
108 include("$db_dir/running");
109 }
110 else {
111 echo "Status : Not currently running\n";
112 }
113 include("$db_dir/summary");
115 ?>
116 </pre>
118 <h3>Report</h3>
119 <pre class="package">
120 <?php
121 include("$db_dir/report");
122 ?>
123 </pre>
125 <h3>Genpkglist</h3>
126 <pre class="package">
127 <?php
128 include("$db_dir/genpkglist");
129 ?>
130 </pre>
132 <h3>Cooklist</h3>
133 <pre class="package">
134 <?php
135 include("$db_dir/cooklist");
136 ?>
137 </pre>
139 <h3>Unbuilt</h3>
140 <pre class="package">
141 <?php
142 include("$db_dir/unbuilt");
143 ?>
144 </pre>
146 <h3>Blocked</h3>
147 <pre class="package">
148 <?php
149 include("$db_dir/blocked.urls");
150 ?>
151 </pre>
153 <h3>Corrupted</h3>
154 <pre class="package">
155 <?php
156 include("$db_dir/corrupted");
157 ?>
158 </pre>
160 <h3>Last cooked packages</h3>
161 <pre class="package">
162 <?php
163 system("cd $packages && ls -1t *.tazpkg | head -20 | \
164 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
165 cut -d. -f1); echo ' '\$file; done"); ?>
166 </pre>
168 <h3>Last removed packages</h3>
169 <pre class="package">
170 <?php
171 include("$db_dir/removed");
172 ?>
173 </pre>
175 <h3>Last cooked flavors</h3>
176 <pre class="package">
177 <?php
178 system("cd $packages && ls -1t *.flavor | head -20 | \
179 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
180 cut -d. -f1); echo ' '\$file; done"); ?>
181 </pre>
183 <!-- End of content with round corner -->
184 </div>
186 <!-- Start of footer and copy notice -->
187 <div id="copy">
188 <p>
189 Copyright © <?php echo date('Y'); ?> <a href="http://www.slitaz.org/">SliTaz</a> -
190 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
191 </p>
192 <!-- End of copy -->
193 </div>
195 <!-- Bottom and logo's -->
196 <div id="bottom">
197 <p>
198 <a href="http://validator.w3.org/check?uri=referer"><img
199 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
200 title="Code validé XHTML 1.0"
201 style="width: 80px; height: 15px;" /></a>
202 </p>
203 </div>
205 </body>
206 </html>