1 |
<?php |
2 |
/** |
3 |
* Helper script to: |
4 |
* - fetch built ISOs info (names, checksums, sizes, langs, etc.) |
5 |
* - build a catalog that can be used for the Web site download redirector |
6 |
* (in var/definitions) |
7 |
* |
8 |
* PHP 5.3 |
9 |
* |
10 |
* @license http://www.opensource.org/licenses/MIT MIT |
11 |
* @author Romain d'Alverny @rdalverny |
12 |
*/ |
13 |
|
14 |
// params |
15 |
|
16 |
$prefix = 'Mageia-2-rc'; |
17 |
$bcd_path = 'mageia2-rc'; |
18 |
$bcd_url = 'rsync://bcd.mageia.org/isos/%s/'; |
19 |
|
20 |
// don't touch below |
21 |
|
22 |
$ts0 = microtime(true); |
23 |
|
24 |
require_once __DIR__ . '/lib/FIDD.php'; |
25 |
|
26 |
FIDD::run(__DIR__, sprintf($bcd_url, $bcd_path), $prefix); |
27 |
|
28 |
echo sprintf("done in %2.2f s.\n", microtime(true) - $ts0); |
29 |
|
30 |
exit(0); |