Created
October 22, 2013 09:41
-
-
Save petercpg/7097845 to your computer and use it in GitHub Desktop.
Flashing latest FxOS v1.2 with zh-TW locale
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="v1.2" | |
# 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-1.2/ | |
git checkout $branch | |
git reset --hard | |
git pull | |
cd locales/$localecode | |
hg pull -u | |
cd ../.. | |
make clean && PRODUCTION=1 make install-gaia MAKECMDGOALS=production MOZILLA_OFFICIAL=1 GAIA_DEFAULT_LOCALE=$localecode LOCALES_FILE=locales/languages_all.json LOCALE_BASEDIR=locales/ REMOTE_DEBUGGER=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我做苦工看了 Makefile 候覺得 MAKECMDGOALS 應該可以拿掉,原因:MAKECMDGOALS=production 後應該作用等同於 PRODUCTION=1
感謝 script <(_ _)>