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)
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 &&
65 echo >&2 "Done -- move RPMS to the master machine."
68 tar cf "$HOME/$V.tar" \
69 RPMS/$arch/*-$V-*.$arch.rpm &&
75 echo >&2 "Failed with status $status"
79 esac >>./:all.log 2>&1 &&
80 make dist-doc >>./:all.log 2>&1 &&
81 mkdir -p $G/RPMS/$arch $G/RPMS/SRPMS &&
82 ln git-$V.tar.gz git-htmldocs-$V.tar.gz git-manpages-$V.tar.gz $G/. &&
86 ln $HOME/rpms/RPMS/$a/*-$V-*.$a.rpm $G/RPMS/$a/.
88 ln $HOME/rpms/SRPMS/git-$V-*.src.rpm $G/RPMS/SRPMS/. &&
90 # I do not know how it exits, and I do not care much.
93 /usr/local/bin/yummy $G/RPMS/$a
95 /usr/local/bin/yummy $G/RPMS/SRPMS
97 } >>./:all.log 2>&1 &&