User:Jibec/git-script.sh

This linux script aim to facilitate the export of mediawiki core and a list of extension.

Since 1.19, mediawiki is using Git and the extension distributor doesn't work anymore. There is not svn-export functionality and you don't have systematic branches for each git repositories. This is particularly scary when you're not a pro-developer since Wikimedia Foundation decided to have a two week deployment window. How to limit risks to have core and extensions not compatible ?

If your website is not updated directly through Git or don't have ssh/shell access, you may be interested to extract archives from mediawiki Git repos and upload them to your host.

How to use

 * 1) set tag variable with REL1_XX where XX is the release version (1.20 is REL1_20, 1_19 is REL1_19, ...)
 * 2) set scriptPath to mach the folder where you are
 * 3) set extensions variable with the extension names you use on your wiki
 * 4) run the script :
 * 5) a folder will be created with core and extensions archives
 * 6) upload them to your webserver and unzip them