wok-stable view tazbb/stuff/web/index.php @ rev 5819

tazbb: add stable support (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 15 11:12:24 2010 +0200 (2010-07-15)
parents e3adace590a1
children 93b7952261f9
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></a><?php if ($version == 'stable') { ?>
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 <?php } ?>
35 <a href="http://bb.slitaz.org/"><img id="logo"
36 src="pics/website/logo.png" title="bb.slitaz.org" alt="bb.slitaz.org"
37 style="border: 0px solid ; width: 200px; height: 74px;" /></a>
38 <p id="titre">#!/bb/packages<?php if ($version == 'stable') echo '/stable'; ?></p>
39 </div>
41 <!-- Navigation menu -->
42 <div id="nav">
44 <div class="nav_box">
45 <h4>SliTaz Network</h4>
46 <ul>
47 <li><a href="http://www.slitaz.org/">Main Website</a></li>
48 <li><a href="http://doc.slitaz.org/">Documentation</a></li>
49 <li><a href="http://forum.slitaz.org/">Community Forum</a></li>
50 <li><a href="http://labs.slitaz.org/">SliTaz Labs</a></li>
51 <li><a href="http://pkgs.slitaz.org/">Packages Database</a></li>
52 <li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
53 <li><a href="http://www.distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
54 </ul>
55 </div>
57 <div class="nav_box">
58 <h4>SliTaz Developers</h4>
59 <ul>
60 <li><a href="http://hg.slitaz.org/">Hg Repositories</a></li>
61 <li><a href="http://tank.slitaz.org/">Tank Server</a></li>
62 <li><a href="http://people.slitaz.org/">People Stuff</a></li>
63 <li><a href="http://labs.slitaz.org/wiki/distro">Distro Wiki</a></li>
65 </ul>
66 </div>
68 <!-- End navigation menu -->
69 </div>
71 <!-- Content top. -->
72 <div id="content_top">
73 <div class="top_left"></div>
74 <div class="top_right"></div>
75 </div>
77 <!-- Content -->
78 <div id="content">
80 <h1><font color="#3E1220">Build Bot</font></h1>
81 <h2><font color="#DF8F06">/usr/bin/tazbb</font></h2>
83 <p>
84 Tazbb is a <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a> Build Bot,
85 it automatically cooks and tests packages commited in the wok. SliTaz
86 <a href="http://pkgs.slitaz.org/">packages</a> are cooked on the project
87 main server: code name <a href="http://tank.slitaz.org">Tank</a>. This
88 web interface gives the current status of the build bot and the last report
89 about any packages modified by the SliTaz contributors in the Mercurial
90 repositories, aka <a href="http://hg.slitaz.org/">Hg repos</a>.
91 </p>
93 <p>
94 <form action="log.php" method="get">
95 Show cooklog: <input type="text" name="package" />
96 <!-- <input type="submit" value="Show" /> -->
97 </form>
98 </p>
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>Cooklist</h3>
126 <pre class="package">
127 <?php
128 include("$db_dir/cooklist");
129 ?>
130 </pre>
132 <h3>Unbuilt</h3>
133 <pre class="package">
134 <?php
135 include("$db_dir/unbuilt");
136 ?>
137 </pre>
139 <h3>Blocked</h3>
140 <pre class="package">
141 <?php
142 include("$db_dir/blocked.urls");
143 ?>
144 </pre>
146 <h3>Corrupted</h3>
147 <pre class="package">
148 <?php
149 include("$db_dir/corrupted");
150 ?>
151 </pre>
153 <h3>Last cooked packages</h3>
154 <pre class="package">
155 <?php
156 system("cd $packages && ls -1t *.tazpkg | head -20 | \
157 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
158 cut -d. -f1); echo ' '\$file; done"); ?>
159 </pre>
161 <h3>Last removed packages</h3>
162 <pre class="package">
163 <?php
164 include("$db_dir/removed");
165 ?>
166 </pre>
168 <h3>Last cooked flavors</h3>
169 <pre class="package">
170 <?php
171 system("cd $packages && ls -1t *.flavor | head -20 | \
172 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
173 cut -d. -f1); echo ' '\$file; done"); ?>
174 </pre>
176 <!-- End of content with round corner -->
177 </div>
179 <!-- Start of footer and copy notice -->
180 <div id="copy">
181 <p>
182 Copyright &copy; 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
183 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
184 </p>
185 <!-- End of copy -->
186 </div>
188 <!-- Bottom and logo's -->
189 <div id="bottom">
190 <p>
191 <a href="http://validator.w3.org/check?uri=referer"><img
192 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
193 title="Code validé XHTML 1.0"
194 style="width: 80px; height: 15px;" /></a>
195 </p>
196 </div>
198 </body>
199 </html>