Skip to content

Instantly share code, notes, and snippets.

@petercpg
Created October 22, 2013 09:41
Show Gist options
  • Save petercpg/7097845 to your computer and use it in GitHub Desktop.
Save petercpg/7097845 to your computer and use it in GitHub Desktop.
Flashing latest FxOS v1.2 with zh-TW locale
#! /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
@bobchao
Copy link

bobchao commented Nov 10, 2013

我做苦工看了 Makefile 候覺得 MAKECMDGOALS 應該可以拿掉,原因:MAKECMDGOALS=production 後應該作用等同於 PRODUCTION=1

感謝 script <(_ _)>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment