]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/Dothem: support multi-arch $HOME directory better
authorJunio C Hamano <gitster@pobox.com>
Mon, 27 Apr 2009 02:49:29 +0000 (19:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Apr 2009 02:49:29 +0000 (19:49 -0700)
This can use the layout that has buildfarm under $HOME/g/$arch/buildfarm
and the layout that has it ../buildfarm, relative to the git tree.  The
maintainer's home machines (and virtual ones) will use the former, while
the k.org machine will use the latter layout.

Dothem

diff --git a/Dothem b/Dothem
index 2a0ec0134764e5c5971c8b0f0d34cb7e8843b5af..20b204d74a5fd876910ab395080789599d541617 100755 (executable)
--- a/Dothem
+++ b/Dothem
@@ -16,7 +16,7 @@ inst_prefix=$(
        echo $HOME
 )
 
-force= with_dash= M= install= nodoc= bootstrap= branches= jobs=
+force= with_dash= M= install= nodoc= notest= bootstrap= branches= jobs=
 while  case "$1" in
        --pedantic) M="$M $1" ;;
        --locale=*) M="$M $1" ;;
@@ -24,6 +24,7 @@ while case "$1" in
        --dash) with_dash=y ;;
        --noinstall) install=noinstall ;;
        --nodoc) nodoc=y ;;
+       --notest) notest=y ;;
        --bootstrap) bootstrap=y ;;
        --base=*) BUILDBASE=${1#*=} ;;
        --branches=*) branches=${1#*=} ;;
@@ -35,7 +36,19 @@ do
        shift
 done
 test -f /bin/dash || with_dash=
-test -n "$BUILDBASE" || BUILDBASE=$inst_prefix/buildfarm
+if test -z "$BUILDBASE"
+then
+       if test -d "$inst_prefix/buildfarm"
+       then
+               BUILDBASE="$inst_prefix/buildfarm"
+       elif test -d "../buildfarm"
+       then
+               BUILDBASE=../buildfarm
+       else
+               echo >&2 "Buildbase unknown"
+               exit 1
+       fi
+fi
 test -n "$branches" || branches='next master maint pu jch'
 test -n "$jobs" || jobs=-j2
 
@@ -97,6 +110,7 @@ do
                *)
                        dotest=test ;;
                esac
+               test -z "$notest" || dotest=
 
                cd "$BUILDBASE/$branch"
                git reset --hard  &&