Created
December 5, 2012 02:54
-
-
Save maxfierke/4211708 to your computer and use it in GitHub Desktop.
Bryan's multi-repo Android setup
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
<bhundven> copy current functionality for now | |
<bhundven> then add new features afterwards | |
<bhundven> reposwitch: http://pastebin.com/Tx3zUPbG | |
<bhundven> reposync: http://pastebin.com/hnpugSMM | |
<bhundven> it's kind of a hack | |
<bhundven> so | |
<bhundven> first | |
<bhundven> sync aosp mirror | |
<bhundven> mkdir -p ~/android/aosp-mirror | |
<bhundven> cd $_ | |
<bhundven> repo init -u https://android.googlesource.com/mirror/manifest.git --mirror | |
<bhundven> repo sync -jX | |
<bhundven> then | |
<bhundven> sync cm7 cm9 and cm10 using reposwitch | |
<bhundven> mkdir -p ~/android/cm-mirror | |
<bhundven> cd $_ | |
<m4xm4n> yeah acidify kind of does all of that but with one environment | |
<m4xm4n> so sometimes shit gets messy | |
<m4xm4n> like when directory trees aren't clean | |
<bhundven> repo init -u https://github.com/CyanogenMod/android.git -b gingerbread --reference /home/$(id -un)/android/aosp-mirror/ --mirror | |
<m4xm4n> but now that I have the hard drive space, three build environments makes sense | |
<bhundven> mv .repo .repo-cm7 | |
<bhundven> then do the repo init ;repo sync for cm9 and cm10 | |
<bhundven> each time after init and sync, move .repo to .repo-cmX | |
<bhundven> after that, just use reposwitch to change which to sync | |
<bhundven> and when everything is down, use reposync | |
<bhundven> or add that to a crontab | |
<bhundven> it will error out at any step the sync fails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment