Created
November 11, 2013 08:21
-
-
Save dwchiang/7409678 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# Link https://l10n.etherpad.mozilla.org/gaia-multilocale | |
localecode="zh-TW" | |
branch="master" | |
# This line force reads $PATH from .profile on OS X | |
# Ref: http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/ | |
cd ~ | |
. ./.profile echo $PATH | |
# Pull Gaia, pull locale and make | |
cd ~/b2g/gaia/ | |
git checkout $branch | |
git reset --hard | |
git pull | |
cd locales/$localecode | |
hg pull -u | |
cd ../.. | |
make clean && PRODUCTION=1 make install-gaia MOZILLA_OFFICIAL=1 GAIA_DEFAULT_LOCALE=$localecode LOCALES_FILE=locales/languages_all.json LOCALE_BASEDIR=locales/ REMOTE_DEBUGGER=1 GAIA_KEYBOARD_LAYOUTS=en,zh-Hans-Pinyin,zh-Hant-Zhuyin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment