~pundiramit/linaro-android-build-tools/export_juice_variables

« back to all changes in this revision

Viewing changes to build-scripts/create-user-build-script

  • Committer: Milo Casagrande
  • Author(s): Axel Fagerstedt
  • Date: 2012-12-28 09:29:09 UTC
  • mfrom: (542.2.1 linaro-android-build-tools)
  • Revision ID: milo@ubuntu.com-20121228092909-c25l6cwqjgd8elc5
Added support for specifying REPO_GROUPS in build parameters.

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
        else
166
166
                CP_CMD="curl -k ${PINNED_MANIFEST_URL}/pinned-manifest.xml > .repo/manifest.xml"
167
167
        fi
 
168
        if [ "$REPO_GROUPS" != "all,-notdefault,-eclipse" ]; then
 
169
                REPO_GROUPS_OPTION="-g $REPO_GROUPS"
 
170
        else
 
171
                REPO_GROUPS_OPTION=""
 
172
        fi
168
173
        cat <<EOF
169
174
# download the repo tool for android
170
175
curl "http://android.git.linaro.org/gitweb?p=tools/repo.git;a=blob_plain;f=repo;hb=refs/heads/stable" > repo
171
176
chmod +x repo
172
177
 
173
178
# download the android code
174
 
./repo init -u \${MANIFEST_REPO} -b \${MANIFEST_BRANCH} -m \${MANIFEST_FILENAME} ${REPO_MIRROR}
 
179
./repo init -u \${MANIFEST_REPO} -b \${MANIFEST_BRANCH} -m \${MANIFEST_FILENAME} ${REPO_MIRROR} $REPO_GROUPS_OPTION
175
180
if [ \${EXACT} -eq 1 ] ; then
176
181
        rm .repo/manifest.xml
177
182
        $CP_CMD