aboutsummaryrefslogtreecommitdiffstats
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
downloadfidd-948f9d8ef1c3f688a688f99ed17974eb87b3d984.tar
fidd-948f9d8ef1c3f688a688f99ed17974eb87b3d984.tar.gz
fidd-948f9d8ef1c3f688a688f99ed17974eb87b3d984.tar.bz2
fidd-948f9d8ef1c3f688a688f99ed17974eb87b3d984.tar.xz
fidd-948f9d8ef1c3f688a688f99ed17974eb87b3d984.zip
Create repo for fidd
-rw-r--r--LICENSE.txt19
-rw-r--r--Makefile7
-rw-r--r--README.md34
-rw-r--r--fidd.php30
4 files changed, 90 insertions, 0 deletions
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..6e16707
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2011 Romain d'Alverny
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
+OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
+OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..63adb4f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+
+catalog:
+ /Applications/MAMP/bin/php5.3/bin/php fidd.php
+
+clean:
+ rm -fr var/tmp/*
+ rm -fr var/definitions/*
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..c776bb5
--- /dev/null
+++ b/README.md
@@ -0,0 +1,34 @@
+FIDD (Format ISO Download Data)
+===============================
+
+Helper script to:
+
+- fetch built ISOs info (names, checksums, sizes, langs, etc.)
+- build a catalog (in var/definitions) that can be used for the Web
+ site download redirector (see http://www.mageia.org/downloads/ section,
+ source code in svn/web/www).
+
+## Usage
+
+First, edit extract.php and update $prefix, $bcd_path and $bcd_url.
+
+Then:
+
+ $ make clean
+ $ make catalog
+
+Finally, get your copy from var/definitions/data.{ini,json,yaml}.
+
+## Code
+
+### Licensed under MIT license (see LICENSE.txt)
+
+### Authors
+
+- Romain d'Alverny (rda at mageia.org)
+
+### Feedback, patches
+
+- #mageia-web on Freenode IRC
+- https://www.mageia.org/mailman/listinfo/mageia-webteam
+- or to authors \ No newline at end of file
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