263
edits
|  (→Merge) |  (→Merge) | ||
| Line 57: | Line 57: | ||
| <pre style="overflow-x:scroll">cd releases/l10n | <pre style="overflow-x:scroll">cd releases/l10n | ||
| function isCentralLocale () { | |||
|   central_locales=(da eo es-ES fr it pl ru) | |||
|   for locale in ${central_locales[@]}; do | |||
|     if [[ $locale == $1 ]]; then | |||
|       return 1 | |||
|     fi | |||
|   done | |||
|   return 0 | |||
| } | |||
| # Path to migration script, without trailing slash (removed if present) | |||
| # Use $HOME instead of ~ if needed | |||
| migration_path="$HOME/mozilla-central/python/devtools/migrate-l10n/migrate" | |||
| migration_path=${migration_path%/} | |||
| for loc in $LOCS; do | for loc in $LOCS; do | ||
| Line 64: | Line 80: | ||
|    hg -R mozilla-beta/$loc push -r default ssh://hg.mozilla.org/releases/l10n/mozilla-beta/$loc |    hg -R mozilla-beta/$loc push -r default ssh://hg.mozilla.org/releases/l10n/mozilla-beta/$loc | ||
|    hg -R mozilla-aurora/$loc pull -u -r default mozilla-beta/$loc |    hg -R mozilla-aurora/$loc pull -u -r default mozilla-beta/$loc | ||
|    #  |    # Specific for 52 on aurora: | ||
|    hg --cwd mozilla-aurora/$loc rm browser/searchplugins/list.txt |    hg --cwd mozilla-aurora/$loc rm browser/searchplugins/list.txt | ||
|    hg --cwd mozilla-aurora/$loc ci -m 'Bug 1276739 - Switch search to use a JSON based format' |    hg --cwd mozilla-aurora/$loc ci -m 'Bug 1276739 - Switch search to use a JSON based format' | ||
|    hg --cwd mozilla-aurora/$loc rm mail/searchplugins/list.txt |    hg --cwd mozilla-aurora/$loc rm mail/searchplugins/list.txt | ||
|    hg --cwd mozilla-aurora/$loc ci -m 'Bug 1300199 - Switch search to use a JSON based format' |    hg --cwd mozilla-aurora/$loc ci -m 'Bug 1300199 - Switch search to use a JSON based format' | ||
|   # Migrate devtools strings https://bugzilla.mozilla.org/show_bug.cgi?id=1294186 | |||
|   isCentralLocale $loc | |||
|   if [ $? -eq 1 ] ; then | |||
|     # Ignore locales working on mozilla-central | |||
|     continue | |||
|   else | |||
|     python ${migration_path}/main.py mozilla-aurora/$loc -c ${migration_path}/conf/bug1294186 | |||
|     hg --cwd mozilla-aurora/$loc rm devtools/client/font-inspector.dtd | |||
|     hg --cwd mozilla-aurora/$loc rm devtools/client/inspector.dtd | |||
|     hg --cwd mozilla-aurora/$loc rm devtools/client/layoutview.dtd | |||
|     hg --cwd mozilla-aurora/$loc rm devtools/client/styleinspector.dtd | |||
|     hg --cwd mozilla-aurora/$loc add devtools/client/boxmodel.properties | |||
|     hg --cwd mozilla-aurora/$loc add devtools/client/font-inspector.properties | |||
|     hg --cwd mozilla-aurora/$loc add devtools/client/inspector.properties | |||
|     hg --cwd mozilla-aurora/$loc add devtools/client/styleinspector.properties | |||
|     hg --cwd mozilla-aurora/$loc ci -m 'Bug 1294186 - Migrate inspector.xul from .dtd to .properties' | |||
|     python ${migration_path}/main.py mozilla-aurora/$loc -c ${migration_path}/conf/bug1308500_1309191 | |||
|     hg --cwd mozilla-aurora/$loc rm devtools/client/netmonitor.dtd | |||
|     hg --cwd mozilla-aurora/$loc add devtools/client/netmonitor.properties | |||
|     hg --cwd mozilla-aurora/$loc ci -m 'Bug 1308500, Bug 1309191 - Migrate NetMonitor from .dtd to .properties' | |||
|   fi | |||
|   # Push to aurora | |||
|    hg --cwd mozilla-aurora/$loc push -r default ssh://hg.mozilla.org/releases/l10n/mozilla-aurora/$loc |    hg --cwd mozilla-aurora/$loc push -r default ssh://hg.mozilla.org/releases/l10n/mozilla-aurora/$loc | ||
| done | done | ||
edits