wok-current annotate tazbb/stuff/web/index.php @ rev 6341

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