slitaz-dev-tools diff oldstuff/tazbb/stuff/web/index.php @ rev 91
Add oldstuff/ with README and tazbb
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 16 15:40:05 2011 +0200 (2011-05-16) |
parents | |
children | 869d3bc4d3a6 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/oldstuff/tazbb/stuff/web/index.php Mon May 16 15:40:05 2011 +0200 1.3 @@ -0,0 +1,202 @@ 1.4 +<?php 1.5 +$version='cooking'; 1.6 +$notversion='stable'; 1.7 +$wok='wok'; 1.8 +if (isset($_GET['stable'])) { 1.9 + $version='stable'; 1.10 + $notversion='cooking'; 1.11 + $wok='wok-stable'; 1.12 +} 1.13 +include("conf.php"); 1.14 +?> 1.15 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 1.16 + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1.17 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 1.18 +<head> 1.19 + <title>SliTaz Build Bot</title> 1.20 + <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> 1.21 + <meta name="description" content="Tazbb web interface" /> 1.22 + <meta name="robots" content="index nofollow" /> 1.23 + <link rel="shortcut icon" href="favicon.ico" /> 1.24 + <link rel="stylesheet" type="text/css" href="slitaz.css" /> 1.25 +</head> 1.26 +<body> 1.27 + 1.28 +<!-- Header --> 1.29 +<div id="header"> 1.30 + <!-- Access --> 1.31 + <div id="access"> 1.32 + <a href="/<?php if ($version != 'stable') 1.33 + echo "?stable"; ?>" title="Slitaz <?php 1.34 + echo $notversion ?> packages"><?php echo $notversion ?></a> 1.35 + </div> 1.36 + <a href="http://bb.slitaz.org/"><img id="logo" 1.37 + src="pics/website/logo.png" 1.38 + title="bb.slitaz.org" alt="bb.slitaz.org" /></a> 1.39 + <p id="titre">#!/Build/Bot/<?php echo $version; ?></p> 1.40 +</div> 1.41 + 1.42 +<!-- Content --> 1.43 +<div id="content-full"> 1.44 + 1.45 +<!-- Block begin --> 1.46 +<div class="block"> 1.47 + <!-- Nav block begin --> 1.48 + <div id="block_nav"> 1.49 + <h3><img src="pics/website/development.png" alt="devel.png" />Developers</h3> 1.50 + <ul> 1.51 + <li><a href="http://www.slitaz.org/en/devel/">Website/devel</a></li> 1.52 + <li><a href="http://labs.slitaz.org/">Laboratories</a></li> 1.53 + <li><a href="http://hg.slitaz.org/">Mercurial Repos</a></li> 1.54 + <li><a href="http://people.slitaz.org/">People Stuff</a></li> 1.55 + <li><a href="http://scn.slitaz.org/">Community Network</a></li> 1.56 + </ul> 1.57 + <!-- Nav block end --> 1.58 + </div> 1.59 + <!-- Top block begin --> 1.60 + <div id="block_top"> 1.61 + <h1>Build Bot</h1> 1.62 + <p> 1.63 + Tazbb is a <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a> 1.64 + Build Bot, it automatically cooks and tests packages commited in 1.65 + the wok. SliTaz <a href="http://pkgs.slitaz.org/">packages</a> are 1.66 + cooked on the project main server: code name 1.67 + <a href="http://tank.slitaz.org">Tank</a>. This web interface gives 1.68 + the current status of the build bot and the last report 1.69 + about any packages modified by the SliTaz contributors in 1.70 + the Mercurial repositories, aka 1.71 + <a href="http://hg.slitaz.org/">Hg repos</a>. 1.72 + </p> 1.73 + <!-- Top block end --> 1.74 + </div> 1.75 +<!-- Block end --> 1.76 +</div> 1.77 + 1.78 +<h2>Cooklog</h2> 1.79 + 1.80 +<p> 1.81 + <form action="log.php" method="get"> 1.82 + <?php 1.83 + if ($version == 'stable') 1.84 + echo '<input type="hidden" name="stable" value="1" />'; 1.85 + ?> Show pkg log: <input type="text" name="package" style="width: 300px;" /> 1.86 + <!-- <input type="submit" value="Show" /> --> 1.87 + </form> 1.88 +</p> 1.89 + 1.90 +<h3>Summary</h3> 1.91 +<pre class="package"> 1.92 +<?php 1.93 + 1.94 +// Check curent status (update in real time) and display summary. 1.95 + 1.96 +if (file_exists($lockfile)) { 1.97 + echo "Status : Running "; 1.98 + include("$db_dir/running"); 1.99 +} 1.100 +else { 1.101 + echo "Status : Not currently running\n"; 1.102 +} 1.103 +include("$db_dir/summary"); 1.104 + 1.105 +?> 1.106 +</pre> 1.107 + 1.108 +<h3>Report</h3> 1.109 +<pre class="package"> 1.110 +<?php 1.111 +include("$db_dir/report"); 1.112 +?> 1.113 +</pre> 1.114 + 1.115 +<h3>Genpkglist</h3> 1.116 +<pre class="package"> 1.117 +<?php 1.118 +include("$db_dir/genpkglist"); 1.119 +?> 1.120 +</pre> 1.121 + 1.122 +<h3>Cooklist</h3> 1.123 +<pre class="package"> 1.124 +<?php 1.125 +include("$db_dir/cooklist"); 1.126 +?> 1.127 +</pre> 1.128 + 1.129 +<h3>Unbuilt</h3> 1.130 +<pre class="package"> 1.131 +<?php 1.132 +include("$db_dir/unbuilt"); 1.133 +?> 1.134 +</pre> 1.135 + 1.136 +<h3>Blocked</h3> 1.137 +<pre class="package"> 1.138 +<?php 1.139 +include("$db_dir/blocked.urls"); 1.140 +?> 1.141 +</pre> 1.142 + 1.143 +<h3>Corrupted</h3> 1.144 +<pre class="package"> 1.145 +<?php 1.146 +include("$db_dir/corrupted"); 1.147 +?> 1.148 +</pre> 1.149 + 1.150 +<h3>Last cooked packages</h3> 1.151 +<pre class="package"> 1.152 +<?php 1.153 +system("cd $packages && ls -1t *.tazpkg | head -20 | \ 1.154 + while read file; do echo -n \$(stat -c '%y' $packages/\$file | \ 1.155 + cut -d. -f1); echo ' '\$file; done"); ?> 1.156 +</pre> 1.157 + 1.158 +<h3>Last removed packages</h3> 1.159 +<pre class="package"> 1.160 +<?php 1.161 +include("$db_dir/removed"); 1.162 +?> 1.163 +</pre> 1.164 + 1.165 +<h3>Last cooked flavors</h3> 1.166 +<pre class="package"> 1.167 +<?php 1.168 +system("cd $packages && ls -1t *.flavor | head -20 | \ 1.169 + while read file; do echo -n \$(stat -c '%y' $packages/\$file | \ 1.170 + cut -d. -f1); echo ' '\$file; done"); ?> 1.171 +</pre> 1.172 + 1.173 +<!-- End of content --> 1.174 +</div> 1.175 + 1.176 +<!-- Footer --> 1.177 +<div id="footer"> 1.178 + <div class="right_box"> 1.179 + <h4>SliTaz Network</h4> 1.180 + <ul> 1.181 + <li><a href="http://www.slitaz.org/">Main Website</a></li> 1.182 + <li><a href="http://doc.slitaz.org/">Documentation</a></li> 1.183 + <li><a href="http://forum.slitaz.org/">Support Forum</a></li> 1.184 + <li><a href="http://scn.slitaz.org/">Community Network</a></li> 1.185 + <li><a href="http://labs.slitaz.org/">Laboratories</a></li> 1.186 + <li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li> 1.187 + </ul> 1.188 + </div> 1.189 + <h4>SliTaz Website</h4> 1.190 + <ul> 1.191 + <li><a href="#header">Top of the page</a></li> 1.192 + <li>Copyright © <span class="year"></span> 1.193 + <a href="http://www.slitaz.org/">SliTaz</a></li> 1.194 + <li><a href="http://www.slitaz.org/en/about/">About the project</a></li> 1.195 + <li><a href="http://www.slitaz.org/netmap.php">Network Map</a></li> 1.196 + <li>Page modified the <?php echo (date( "d M Y", getlastmod())); ?></li> 1.197 + <li><a href="http://validator.w3.org/check?uri=referer"><img 1.198 + src="pics/website/xhtml10.png" alt="Valid XHTML 1.0" 1.199 + title="Code validé XHTML 1.0" 1.200 + style="width: 80px; height: 15px; vertical-align: middle;" /></a></li> 1.201 + </ul> 1.202 +</div> 1.203 + 1.204 +</body> 1.205 +</html>