Skip to content

Instantly share code, notes, and snippets.

@dwchiang
Created November 11, 2013 08:21

Revisions

  1. dwchiang created this gist Nov 11, 2013.
    21 changes: 21 additions & 0 deletions flash_keon_master.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #! /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