wok view tazbb/stuff/web/index.php @ rev 4447

tazbb: generate flavors
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 07 16:24:17 2009 +0100 (2009-11-07)
parents 87cd9284651c
children 5bd5106a9d4b
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 <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a> Build Bot,
49 it automatically cooks and tests 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 gives the current status of the build bot and the last report
53 about any packages modified by the SliTaz contributors in the Mercurial
54 <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");
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 <h3>Last cooked flavors</h3>
133 <pre class="package">
134 <?php
135 system("cd $packages && ls -1t *.flavor | head -20 | \
136 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
137 cut -d. -f1); echo ' '\$file; done"); ?>
138 </pre>
140 <!-- End of content with round corner -->
141 </div>
142 <div id="content_bottom">
143 <div class="bottom_left"></div>
144 <div class="bottom_right"></div>
145 </div>
147 <!-- Start of footer and copy notice -->
148 <div id="copy">
149 <p>
150 Copyright &copy; 2009 <a href="http://www.slitaz.org/">SliTaz</a> -
151 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
152 </p>
153 <!-- End of copy -->
154 </div>
156 <!-- Bottom and logo's -->
157 <div id="bottom">
158 <p>
159 <a href="http://validator.w3.org/check?uri=referer"><img
160 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
161 title="Code validé XHTML 1.0"
162 style="width: 80px; height: 15px;" /></a>
163 </p>
164 </div>
166 </body>
167 </html>