Siebrand has uploaded a new change for review. https://gerrit.wikimedia.org/r/51650
Change subject: Add script for Wikia MediaWiki extension processing ...................................................................... Add script for Wikia MediaWiki extension processing Change-Id: Ic054eae79b634ac6886663d0abcf8f7e3df321df --- A bin/update-wikia 1 file changed, 35 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/translatewiki refs/changes/50/51650/1 diff --git a/bin/update-wikia b/bin/update-wikia new file mode 100644 index 0000000..9dbded6 --- /dev/null +++ b/bin/update-wikia @@ -0,0 +1,35 @@ +#!binsh +# Quick script for updating, processing and exporting Wikia MediaWiki extensions. +set -e +MYDIR=resources`whoami` + +# Update production data +repo update wikia +# Update staging environment +repoupdate wikia $MYDIR +wait + +# Process changes in the backend. +sudo -u betawiki php wwwtranslatewiki.netwextensionsTranslatescriptsprocessMessageChanges.php --group=wikia- + +# Tell user to manually review changes. +echo You should probably visit httpstranslatewiki.netwikiSpecialManageMessageGroups now! Really! +echo Once done there, come back here and type Y and [ENTER] to continue. + +# Require "Y" as input to continue. +read INPUT +if [ $INPUT != Y ] +then + printf nn + echo Script ended. User did not type 'Y' to continue + exit 1 +fi + +# Export +repoexport wikia-quick $MYDIR +#Commit +repocommit wikia $MYDIR +# Update production data again +repo update wikia +# Process changes (no changes expected) +sudo -u betawiki php wwwtranslatewiki.netwextensionsTranslatescriptsprocessMessageChanges.php --group=wikia- -- To view, visit https://gerrit.wikimedia.org/r/51650 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic054eae79b634ac6886663d0abcf8f7e3df321df Gerrit-PatchSet: 1 Gerrit-Project: translatewiki Gerrit-Branch: master Gerrit-Owner: Siebrand <siebr...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits