X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=web%2Fstaticall.php;h=60f7fa77b419e66fb8c70da4b7ab7818e2336a64;hp=3a6407ffb85aab2aaf0d277120147f5986f5bafc;hb=2257c0acfd9c8f91d41e858272d289168b8eb965;hpb=ad8da11f6d0664e0fb3c8707a869425088daea7e diff --git a/web/staticall.php b/web/staticall.php index 3a6407ff..60f7fa77 100644 --- a/web/staticall.php +++ b/web/staticall.php @@ -4,7 +4,7 @@ include('logo.html'); include('menulist.html'); include('static-configuration'); -$tarballsize=round((filesize($argv[2]."/ccan.tar.bz2") + 1023) / 1024); +$tarballsize=round((filesize($argv[3]."/ccan.tar.bz2") + 1023) / 1024); ?>

List of all CCAN modules:

@@ -38,8 +38,8 @@ foreach ($modules as $module) { $summary=extract_field('summary',$argv[1].$module); $with_deps="$tar_dir/with-deps/$module.tar.bz2"; $no_deps="$tar_dir/$module.tar.bz2"; - $with_dep_size = round((filesize($argv[2]."/".$with_deps) + 1023) / 1024); - $no_dep_size = round((filesize($argv[2]."/".$no_deps) + 1023) / 1024); + $with_dep_size = round((filesize($argv[3]."/".$with_deps) + 1023) / 1024); + $no_dep_size = round((filesize($argv[3]."/".$no_deps) + 1023) / 1024); ?> @@ -60,18 +60,19 @@ $d->close(); read())) { if ($entry[0] != '.') { - array_push($files, $entry); + array_push($dirs, $entry); } } -sort($files); -foreach ($files as $file) { - $size = round((filesize($argv[2]."/junkcode/".$file) + 1023) / 1024); - echo "\n"; +sort($dirs); +foreach ($dirs as $dir) { + $size = round((filesize($argv[3]."/junkcode/".$dir.".tar.bz2") + 1023) / 1024); + echo "\n"; + echo "\n"; } $d->close(); ?>
$file (${size}K)
$dir.tar.bz2 (${size}K)Browse contents...