mkbuild

mk based build system
git clone git://git.2f30.org/mkbuild
Log | Files | Refs | LICENSE

commit 47b39cacd20170d2c96247626ed239a1486ad2e8
parent 86fb4d2cf3675ee18557d1a97d2e5e4d007b9ede
Author: Daniel Bainton <dpb@driftaway.org>
Date:   Wed,  9 Apr 2014 16:04:29 +0300

Support branches for 3rdparty git repos

Diffstat:
Mmk.fetch | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/mk.fetch b/mk.fetch @@ -2,13 +2,16 @@ fetch:QV: fetch-git fetch-http fetch-git:QV: - if test "$git" = ""; then + if test x"$git" = x""; then return fi - test -d $src || git clone $git $src + if test x"$branch" = x""; then + branch=master + fi + test -d $src || git clone -b $branch $git $src fetch-http:QV: - if test "$url" = ""; then + if test x"$url" = x""; then return fi wget -c $url