diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2012-12-17 15:16:00 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2012-12-17 15:16:00 +0530 |
commit | dbebcd846e2124069f1130a67c2954ddade0d108 (patch) | |
tree | 1eaa3e1df789039167479c90ef215dfaec3c2d24 /build-scripts/create-user-build-script | |
parent | 5cc3507d25e75dac3d38c11bb4e1ca9f8fdaf43a (diff) |
Update user build script to prompt for login-id
Diffstat (limited to 'build-scripts/create-user-build-script')
-rwxr-xr-x | build-scripts/create-user-build-script | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/build-scripts/create-user-build-script b/build-scripts/create-user-build-script index 26453dd..929d618 100755 --- a/build-scripts/create-user-build-script +++ b/build-scripts/create-user-build-script @@ -32,13 +32,13 @@ set -e EXACT=1 DIR=android -ID=default +ID=default-bot usage() { echo $USAGE_SUM echo -e $USAGE_OVERLAY - echo " -t Reproduce the from the tip of the branch rather than doing" + echo " -t Reproduce the build from the tip of the branch rather than doing" echo " an exact replica build" echo " -d <directory> The directory to download code and build from" echo " Default: \${DIR}" @@ -179,14 +179,20 @@ fi # check for linaro private git repositories PRI=`grep -i "linaro-private" .repo/manifests/${MANIFEST_FILENAME} | wc -l` if [ $PRI -gt 0 ] ; then - if [ "$ID" == "default" ] ; then + if [ "$ID" == "default-bot" ] ; then echo "You must specify valid login/access-id to clone from linaro-private git repositories." - echo "Press "y" to continue (which may result in incomplete build) OR Press "n" for help." + echo "Press "y" to continue (which may result in incomplete build), OR" + echo "Press "n" to enter login details, OR" + echo "Press "h" for help." read NEXT - [ ${NEXT} == y] || usage - else - sed -i 's/\/\/.*-bot@/\/\/'"$ID"'@/' .repo/manifests/${MANIFEST_FILENAME} + if [ ${NEXT} == n ] ; then + echo "Enter login/access-id:" + read ID + elif [ ${NEXT} == h ] ; then + usage + fi fi + sed -i 's/\/\/.*-bot@/\/\/'"$ID"'@/' .repo/manifests/${MANIFEST_FILENAME} fi ./repo sync |