diff options
author | filip <filip.komar@gmail.com> | 2015-05-02 16:13:53 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2015-05-02 16:13:53 +0200 |
commit | e31ec4507c495254239f11841d81c865e80e41a9 (patch) | |
tree | e0c62b5c7cc2e0564e7ae13d6ce8e82a6058da78 /tools | |
parent | c2158bebcc570b4f1a573122a546310268434e9e (diff) | |
download | www-e31ec4507c495254239f11841d81c865e80e41a9.tar www-e31ec4507c495254239f11841d81c865e80e41a9.tar.gz www-e31ec4507c495254239f11841d81c865e80e41a9.tar.bz2 www-e31ec4507c495254239f11841d81c865e80e41a9.tar.xz www-e31ec4507c495254239f11841d81c865e80e41a9.zip |
adding download of pdf and epub file infrastructure
Diffstat (limited to 'tools')
-rw-r--r-- | tools/update-mirrors-list.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/update-mirrors-list.php b/tools/update-mirrors-list.php index d9be85226..ee17f9b2c 100644 --- a/tools/update-mirrors-list.php +++ b/tools/update-mirrors-list.php @@ -2,7 +2,20 @@ /** * Run this to update lib/cached.list.php mirrors list from mirrors.mageia.org/api * + * Usage for regeneration of cached.list.php for ISO and torrent files: + * php ./tools/update-mirrors-list.php + * + * Usage for regeneration of cached.list_doc.php for documentation files: + * php ./tools/update-mirrors-list.php true + * */ require __DIR__ . '/../lib/Downloads.php'; -Downloads::get_all_mirrors(false);
\ No newline at end of file +$documentation = isset($argv[1]) ? $argv[1] : false; + +if($documentation) { + echo 'Rebuilding' . __DIR__ . '/cached.list_doc.php with date.txt as a test file.' . PHP_EOL; +} else { + echo 'Rebuilding' . __DIR__ . '/cached.list.php with one torrent as a test file.' . PHP_EOL; +} +Downloads::get_all_mirrors(false, $documentation); |