jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/bin/update-wikia b/bin/update-wikia
new file mode 100755
index 0000000..34e66d2
--- /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 
/www/translatewiki.net/w/extensions/Translate/scripts/processMessageChanges.php 
--group=wikia-*
+
+# Tell user to manually review changes.
+echo "You should probably visit 
https://translatewiki.net/wiki/SpecialManageMessageGroups 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 "\n\n"
+       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 
/www/translatewiki.net/w/extensions/Translate/scripts/processMessageChanges.php 
--group=wikia-*

-- 
To view, visit https://gerrit.wikimedia.org/r/51650
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic054eae79b634ac6886663d0abcf8f7e3df321df
Gerrit-PatchSet: 5
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to