Revision control

Copy as Markdown

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at */
# Use the --force option to force a re-build locales.
# Use the --importLocales option to fetch and update locales only
getLocale() {
echo "Getting locale..."
rm -rf LocalizationTools
echo "Creating firefoxios-l10n Git repo"
rm -rf firefoxios-l10n
git clone --depth 1 firefoxios-l10n || exit 1
if [ "$1" == "--force" ]; then
rm -rf firefoxios-l10n
rm -rf LocalizationTools
rm -rf build
if [ "$1" == "--importLocales" ]; then
# Import locales
if [ -d "/firefoxios-l10n" ] && [ -d "/LocalizationTools" ]; then
echo "l10n directories found. Not downloading scripts."
echo "l10n directory not found. Downloading repo and scripts."
exit 0
# Download the script from application-services.
curl --proto '=https' --tlsv1.2 -sSf | bash -s -- --directory ./firefox-ios/bin $NIMBUS_FML_FILE
# Run and update content blocker