Skip to content

Instantly share code, notes, and snippets.

@maxfierke
Created December 5, 2012 02:54
Show Gist options
  • Save maxfierke/4211708 to your computer and use it in GitHub Desktop.
Save maxfierke/4211708 to your computer and use it in GitHub Desktop.
Bryan's multi-repo Android setup
<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