Permalink
Browse files

bootstrap support

  • Loading branch information...
1 parent a1f4e23 commit 03d39f227d6c9722aee76ed18c73f4a09d3ef018 @koush koush committed Feb 23, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 build.sh
View
@@ -30,7 +30,14 @@ fi
if [ ! -d $REPO_BRANCH ]
then
- mkdir $REPO_BRANCH
+ if [ ! -z "$BOOTSTRAP" -a -d "$BOOTSTRAP" ]
+ then
+ cp -R $BOOTSTRAP $REPO_BRANCH
+ # this preserves .repo
+ rm -rf *
+ else
+ mkdir $REPO_BRANCH
+ fi
cd $REPO_BRANCH
repo init -u git://github.com/CyanogenMod/android.git -b $REPO_BRANCH
else

0 comments on commit 03d39f2

Please sign in to comment.