[yocto] [PATCHv3 3/3] script/build.sh: Added option to enable building from local repository.
mail at timomueller.eu
mail at timomueller.eu
Tue Dec 11 00:13:03 PST 2012
From: Timo Mueller <timo.mueller at bmw-carit.de>
If the script is called with the -l option the local git repository is
used instead of the upstream repository.
Signed-off-by: Timo Mueller <timo.mueller at bmw-carit.de>
---
scripts/build.sh | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/scripts/build.sh b/scripts/build.sh
index 693dcf7..54081d5 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -7,6 +7,7 @@ help ()
echo ""
echo "Options:"
echo "-h - display this help and exit"
+ echo "-l - use local git repository"
echo "BRANCH_NAME - git branch name to build upon"
echo "RELEAES_NAME - release name in the final output name"
echo "TAG_NAME - git tag name to build upon. defaults to HEAD if not set"
@@ -67,11 +68,14 @@ check_env ()
}
USE_LOCAL_GIT_REPO=0
-while getopts ":h" opt; do
+while getopts ":lh" opt; do
case $opt in
h)
help
;;
+ l)
+ USE_LOCAL_GIT_REPO=1
+ ;;
esac
done
shift $(($OPTIND - 1))
--
1.7.7.6
More information about the yocto
mailing list