tazwok annotate web/index.php @ rev 201

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