diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-08-18 14:25:27 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-08-21 10:04:20 +1000 |
commit | 493d784c8bbf384d4a68ad4087147f395c3ad672 (patch) | |
tree | 0f31dd124fbde929d163a6747b9f64526bed85a6 | |
parent | fe470806ac6893237171da200b3f41bfc897465c (diff) |
build.sh: add GITCLONEOPTS for git clone options
Because this is Australia and --depth 1 is a lifesaver. One without a snazzy
red-yellow cap though.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rwxr-xr-x | build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -137,6 +137,8 @@ # Each module/components is invoked with --quite # GITROOT Source code repository path [git://anongit.freedesktop.org/git] # Optional when using --clone to update source code before building +# GITCLONEOPTS Options passed to git clone. +# Optional when using --clone to update source code before building # CONFFLAGS Configure options to pass to all Autoconf configure scripts # Refer to 'configure --help' from any module/components # @@ -529,7 +531,7 @@ clone() { GITROOT=${GITROOT:="git://anongit.freedesktop.org/git"} if [ ! -d "$DIR" ]; then - git clone "$GITROOT/$BASEDIR$DIR" "$DIR" + git clone $GITCLONEOPTS "$GITROOT/$BASEDIR$DIR" "$DIR" if [ $? -ne 0 ]; then echo "Failed to clone $module${component:+/}$component. Ignoring." clonefailed_components="$clonefailed_components $module${component:+/}$component" |