aboutsummaryrefslogtreecommitdiffstats
path: root/fidd.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-05-14 09:14:44 +0000
committerRomain d'Alverny <rda@mageia.org>2012-05-14 09:14:44 +0000
commit948f9d8ef1c3f688a688f99ed17974eb87b3d984 (patch)
tree8f4b5c55655d8a2e1f56a1488fefaf6b66bd8fb8 /fidd.php
downloadfidd-948f9d8ef1c3f688a688f99ed17974eb87b3d984.tar
fidd-948f9d8ef1c3f688a688f99ed17974eb87b3d984.tar.gz
fidd-948f9d8ef1c3f688a688f99ed17974eb87b3d984.tar.bz2
fidd-948f9d8ef1c3f688a688f99ed17974eb87b3d984.tar.xz
fidd-948f9d8ef1c3f688a688f99ed17974eb87b3d984.zip
Create repo for fidd
Diffstat (limited to 'fidd.php')
-rw-r--r--fidd.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/fidd.php b/fidd.php
new file mode 100644
index 0000000..0e19a35
--- /dev/null
+++ b/fidd.php
@@ -0,0 +1,30 @@
+<?php
+/**
+ * Helper script to:
+ * - fetch built ISOs info (names, checksums, sizes, langs, etc.)
+ * - build a catalog that can be used for the Web site download redirector
+ * (in var/definitions)
+ *
+ * PHP 5.3
+ *
+ * @license http://www.opensource.org/licenses/MIT MIT
+ * @author Romain d'Alverny @rdalverny
+*/
+
+// params
+
+$prefix = 'Mageia-2-rc';
+$bcd_path = 'mageia2-rc';
+$bcd_url = 'rsync://bcd.mageia.org/isos/%s/';
+
+// don't touch below
+
+$ts0 = microtime(true);
+
+require_once __DIR__ . '/lib/FIDD.php';
+
+FIDD::run(__DIR__, sprintf($bcd_url, $bcd_path), $prefix);
+
+echo sprintf("done in %2.2f s.\n", microtime(true) - $ts0);
+
+exit(0); \ No newline at end of file