From 86e4f3df105072a7457868063eb5ddc5ed969ac4 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Wed, 20 May 2020 15:41:09 +0200 Subject: [PATCH] Add instructions for creations Making less prone to typos, mistakes, etc. --- new_wikis_handler.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/new_wikis_handler.py b/new_wikis_handler.py index 33b05f2..fd66758 100644 --- a/new_wikis_handler.py +++ b/new_wikis_handler.py @@ -219,6 +219,26 @@ def main(): print(' [] Import from Incubator') print(' [] Clean up old interwiki links') + print('\n-------') + print('**Step by step commands**:') + if parts[1] == 'wiktionary': + dummy_wiki = 'aawiktionary' + else: + dummy_wiki = 'aawiki' + print('On mwmaint1002:') + print('`mwscript extensions/WikimediaMaintenance/addWiki.php --wiki={dummy} {lang} {family} {db} {url}`'.format( + dummy=dummy_wiki, lang=language_code, family=parts[1], db=db_name, url='.'.join(parts) + )) + summary = 'Creating {db_name} ({phab})'.format(db_name=db_name, phab=sys.argv[2]) + print('On deploy1001:') + print('`scap sync-file dblists "{}"`'.format(summary)) + print('`scap sync-wikiversions "{}"`'.format(summary)) + if parts[1] == 'wikimedia': + print('`scap sync-file multiversion/MWMultiVersion.php "{}"`'.format(summary)) + print('`scap sync-file wmf-config/InitialiseSettings.php "{}"`'.format(summary)) + print('`scap sync-file static/images/project-logos/ "{}"`'.format(summary)) + print('`scap sync-file langlist "{}"`'.format(summary)) + print('`scap update-interwiki-cache`') main()