From: Timo Mueller <[email protected]>
If the script is called with the -l option the local git repository is
used instead of the upstream repository.
---
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
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto