4 include('menulist.html');
5 include('static-configuration');
7 $tarballsize=round((filesize($argv[3]."/ccan.tar.bz2") + 1023) / 1024);
10 <h1> List of all CCAN modules: </h1>
13 Note that two downloads are offered: the first includes with all the
14 other ccan modules this module uses, the second is a standalone
19 Or you can just download the <a href="ccan.tar.bz2">tarball of everything including CCAN tools (<?=$tarballsize?>K)</a>.
22 <table align="center" width="80%" border="0" cellpadding="3" cellspacing="1">
23 <th align="left">Name</th>
24 <th align="left">Summary / Link to details</th>
25 <th align="right">Download</th>
30 while (false !== ($entry = $d->read())) {
31 if ($entry[0] != '.' && is_file($argv[1].$entry."/_info")) {
32 array_push($modules, $entry);
37 foreach ($modules as $module) {
38 $summary=extract_field('summary',$argv[1].$module);
39 $with_deps="$tar_dir/with-deps/$module.tar.bz2";
40 $no_deps="$tar_dir/$module.tar.bz2";
41 $with_dep_size = round((filesize($argv[3]."/".$with_deps) + 1023) / 1024);
42 $no_dep_size = round((filesize($argv[3]."/".$no_deps) + 1023) / 1024);
46 <td><a href="info/<?=$module?>.html"><?=$summary?></a></td>
47 <td align="right"><a href="<?=$with_deps?>"><?=$with_dep_size?>K</a> /
48 <a href="<?=$no_deps?>"><?=$no_dep_size?>K</a></td>
56 <h2> Contents of Junkcode: </h2>
58 (This is contributed code which was dumped here: these gems may need some polishing.)
60 <table align="center" width="80%" border="0" cellpadding="3" cellspacing="1">
65 while (false !== ($entry = $d->read())) {
66 if ($entry[0] != '.') {
67 array_push($dirs, $entry);
72 foreach ($dirs as $dir) {
73 $size = round((filesize($argv[3]."/junkcode/".$dir.".tar.bz2") + 1023) / 1024);
74 echo "<tr><td><a href=\"junkcode/$dir.tar.bz2\">$dir.tar.bz2 (${size}K)</a></td>\n";
75 echo "<td><a href=\"junkcode/$dir.html\">Browse contents...</a></td><tr>\n";