Skip to content

Instantly share code, notes, and snippets.

@tomer
Created August 21, 2012 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tomer/3419283 to your computer and use it in GitHub Desktop.
Save tomer/3419283 to your computer and use it in GitHub Desktop.
b2g profile builder script
#!/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