Created
August 21, 2012 20:44
-
-
Save tomer/3419283 to your computer and use it in GitHub Desktop.
b2g profile builder script
This file contains hidden or 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
#!/bin/bash | |
# | |
# b2g Profile builder script | |
# The script will clone gaia, build a clean profile and pack it into tar.bz2 archive. | |
# - Tomer Cohen <http://tomercohen.com/?p=1275> | |
if [ ! -d gaia ]; | |
then | |
git clone git://github.com/mozilla-b2g/gaia ; | |
else | |
rm -rf gaia/profile ; | |
rm gaia/clean-b2g-profile.tar.bz2 ; | |
cd gaia ; | |
git pull -u ; | |
cd .. ; | |
fi | |
make -C gaia profile | |
cd gaia | |
tar -jcvf clean-b2g-profile.tar.bz2 profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment