From cbc7c6158cc2fc646398214c3f1cdc2814709a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 5 Mar 2012 15:43:28 +0100 Subject: easy_e17.sh: add --branch option --- easy_e17.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/easy_e17.sh b/easy_e17.sh index b105ce3..ebf1baf 100755 --- a/easy_e17.sh +++ b/easy_e17.sh @@ -32,6 +32,7 @@ ewk_build_dir="./WebKitBuild/Release" git=0 git_url="git@asynk.ch:e" +git_branch="master" src_url="http://svn.enlightenment.org/svn/e/trunk" src_rev="HEAD" cmd_svn_test="svn info" @@ -134,7 +135,7 @@ function header () echo echo " efl e +" if [ $git -eq 1 ]; then - echo " Source url : $git_url" + echo " Source url : $git_url ($git_branch)" else echo " Source url : $src_url (Revision: $src_rev)" fi @@ -189,6 +190,7 @@ function help () echo " --instpath= = change the default install path" echo " --srcpath= = change the default source path" echo " --srcurl= = change the default source url" + echo " --branch= = change the default git branch" echo " --srcmode= = checkout only required package source" echo " or simply everthing (huge)" echo " --srcrev= = set the default source revision" @@ -813,6 +815,7 @@ function git_fetch () set_title "Updating sources in '$src_path' ..." echo "- updating sources in '$src_path' ..." cd $src_path + git checkout $git_branch || exit 1 if [ $make_only == 0 ]; then echo "- checkout modified files" git status -s | grep -e '^ M' | cut -d " " -f 3 | xargs git checkout 2>/dev/null -- cgit v1.1-2-g2b99