Hey,
I'm looking for a way to collect existing extension meta-data from the SVN repo and maybe also the extension pages on MediaWiki.org. Does anyone know of scripts/tools that already do this?
I need this data for the Distribution extension [0], for which I want some minimal functionality working before the end of GSoC (one week from now). Since I don't have much time any help which such a script would be appreciated, as parsing data like this is something I don't have a lot of experience with.
[0] https://secure.wikimedia.org/wikipedia/mediawiki/wiki/Extension:Distribution
Cheers
-- Jeroen De Dauw * http://blog.bn2vs.com * http://wiki.bn2vs.com Don't panic. Don't be evil. 50 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65! --
2010/8/9 Jeroen De Dauw jeroendedauw@gmail.com:
Hey,
I'm looking for a way to collect existing extension meta-data from the SVN repo and maybe also the extension pages on MediaWiki.org. Does anyone know of scripts/tools that already do this?
Depending on what metadata you need, the $wgExtensionCredits variable could be your friend. Note that the extension doesn't need to actually be installed: in most cases you can get away with just locating the file that contains the $wgExtensionCredits assignment and require()ing that file. This will probably fail in some cases, but most setup files only contain assignments.
Roan Kattouw (Catrope)
Or is wanted to get really hacky, preg_replace everything that is not part of the $wgExtensionCredits tag out and just send the tag to eval (). :)
-X!
On Aug 9, 2010, at 7:02 AM, Roan Kattouw wrote:
2010/8/9 Jeroen De Dauw jeroendedauw@gmail.com:
Hey,
I'm looking for a way to collect existing extension meta-data from the SVN repo and maybe also the extension pages on MediaWiki.org. Does anyone know of scripts/tools that already do this?
Depending on what metadata you need, the $wgExtensionCredits variable could be your friend. Note that the extension doesn't need to actually be installed: in most cases you can get away with just locating the file that contains the $wgExtensionCredits assignment and require()ing that file. This will probably fail in some cases, but most setup files only contain assignments.
Roan Kattouw (Catrope)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org