From 948f9d8ef1c3f688a688f99ed17974eb87b3d984 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Mon, 14 May 2012 09:14:44 +0000 Subject: Create repo for fidd --- LICENSE.txt | 19 +++++++++++++++++++ Makefile | 7 +++++++ README.md | 34 ++++++++++++++++++++++++++++++++++ fidd.php | 30 ++++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 LICENSE.txt create mode 100644 Makefile create mode 100644 README.md create mode 100644 fidd.php 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 @@ +