From 556c5afd23c09d969fda2ff604abc11c98def032 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Sun, 26 Oct 2014 22:47:09 -0700 Subject: Builds can be performed from a branch --- scripts/include.sh/build-dep.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'scripts') diff --git a/scripts/include.sh/build-dep.sh b/scripts/include.sh/build-dep.sh index 5b762d28..6bc53804 100755 --- a/scripts/include.sh/build-dep.sh +++ b/scripts/include.sh/build-dep.sh @@ -59,6 +59,7 @@ build_git_ios() cd "$builddir/downloads" if test -d "$name" ; then cd "$name" + git checkout master git pull --rebase else git clone $url "$name" @@ -72,6 +73,11 @@ build_git_ios() cp -R "$builddir/downloads/$name" "$srcdir/$name" cd "$srcdir/$name" + if test "x$branch" != x ; then + if ! git checkout -b "$branch" "origin/$branch" ; then + git checkout "$branch" + fi + fi git checkout -q $rev echo building $name $version - $rev @@ -186,6 +192,7 @@ build_git_osx() cd "$builddir/downloads" if test -d "$name" ; then cd "$name" + git checkout master git pull --rebase else git clone $url "$name" @@ -199,6 +206,11 @@ build_git_osx() cp -R "$builddir/downloads/$name" "$srcdir/$name" cd "$srcdir/$name" + if test "x$branch" != x ; then + if ! git checkout -b "$branch" "origin/$branch" ; then + git checkout "$branch" + fi + fi git checkout -q $rev echo building $name $version - $rev -- cgit v1.2.3