3 case "`uname -m 2>/dev/null`" in
11 G=/pub/software/scm/git &&
14 make clean >/dev/null 2>&1 &&
16 make clean >/dev/null 2>&1 &&
17 git checkout master &&
19 make clean >/dev/null 2>&1 &&
24 : ${branches='next master maint pu'}
26 for branch in $branches
28 if git-rev-parse --verify refs/heads/$branch 2>/dev/null
30 echo "** $branch **" &&
31 git checkout $branch &&
35 nstalled=all || exit $?
49 demeter.kernel.org|demeter|old-hera.kernel.org|kunrun-vmw-fc5)
51 *) echo >&2 "What are you talking about???"
55 echo "* Building $1" &&
57 make $J git >./:all.log 2>&1 &&
58 V=`./git --version | sed -e 's/git version //'` &&
59 make rpm >>./:all.log 2>&1 &&
62 # This is not the primary build machine.
66 echo >&2 "Done -- move RPMS to the master machine."
69 tar cf "$HOME/$V.tar" \
70 RPMS/$arch/*-$V-*.$arch.rpm &&
76 echo >&2 "Failed with status $status"
81 ln git-$V.tar.gz $G/. &&
82 make dist-doc >>./:all.log 2>&1 &&
83 ln git-htmldocs-$V.tar.gz git-manpages-$V.tar.gz $G/.
85 esac >>./:all.log 2>&1 &&
86 case "$NO_RPM_PLEASE" in
88 mkdir -p $G/RPMS/$arch $G/RPMS/SRPMS &&
91 mkdir -p "$G/RPMS/$a" &&
92 for rr in $HOME/rpms/RPMS/$a/*-$V-*.$a.rpm
94 test -f "$rr" || continue
98 ln $HOME/rpms/SRPMS/git-$V-*.src.rpm $G/RPMS/SRPMS/. &&
100 # I do not know how it exits, and I do not care much.
103 /usr/local/bin/yummy $G/RPMS/$a
105 /usr/local/bin/yummy $G/RPMS/SRPMS
107 } >>./:all.log 2>&1 ;;