Skip to content

Instantly share code, notes, and snippets.

@dwchiang
Created April 17, 2014 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwchiang/10983480 to your computer and use it in GitHub Desktop.
Save dwchiang/10983480 to your computer and use it in GitHub Desktop.
Scripts for flashing gaia v1.3 with zh-TW l10n package
#! /usr/bin/env bash
# Link https://l10n.etherpad.mozilla.org/gaia-multilocale
localecode="zh-TW"
branch="v1.3"
# 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 checkout master
#git checkout --detach HEAD
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
#! /usr/bin/env bash
# Link https://etherpad.mozilla.org/fxos-zhtw-1-2-qatest
localecode="zh-TW"
branch="v1.3"
branch_u="v1_3"
# Get Gaia
#mkdir ~/b2g
cd ~/b2g
git clone https://github.com/mozilla-b2g/gaia
cd gaia
git checkout -b $branch origin/$branch
cd locales
# Get zh-TW locale
hg clone https://hg.mozilla.org/releases/gaia-l10n/$branch_u/$localecode
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment