Created
September 7, 2012 00:32
-
-
Save navitronic/3661907 to your computer and use it in GitHub Desktop.
Plugin installer script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"debug-bar" : "0.8", | |
"debug-bar-cron" : "0.1.2", | |
"developer" : "1.0.0", | |
"jetpack" : "1.7", | |
"limit-login-attempts" : "1.7.1", | |
"log-deprecated-notices" : "0.2", | |
"monkeyman-rewrite-analyzer" : "1.0", | |
"monster-widget" : "0.1", | |
"more-fields" : "2.1", | |
"regenerate-thumbnails" : "2.2.3", | |
"rewrite-rules-inspector" : "1.0", | |
"search-everything" : "6.9.4.1", | |
"tinymce-advanced" : "3.4.9", | |
"vip-scanner" : "0.2", | |
"white-label-cms" : "1.5", | |
"wordpress-beta-tester" : "0.95", | |
"wordpress-file-monitor-plus" : "2.2", | |
"wordpress-firewall-2" : "1.3", | |
"wordpress-importer" : "0.6", | |
"wordpress-seo" : "1.2.7" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
error_reporting(E_ALL); | |
$plugins_file = getcwd() . '/plugins.json'; | |
if (!file_exists($plugins_file)) | |
die("Cannot find a plugins.json file.\n\n"); | |
$plugins_file_contents = file_get_contents($plugins_file); | |
$plugins = json_decode($plugins_file_contents); | |
if (!$plugins) | |
die("Could not parse plugins.json file.\n\n"); | |
print "plugins.json loaded and parsed correctly.\n"; | |
$plugins = (get_object_vars($plugins)); | |
foreach ($plugins as $plugin => $version) | |
{ | |
echo "\nAttempting to download " . $plugin . "\n\n"; | |
passthru('svn export --force http://plugins.svn.wordpress.org/' . $plugin . '/tags/' . $version . '/ ' . $plugin); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment