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
&&
18 make clean
>/dev
/null
2>&1 &&
20 case "$(asciidoc --version 2>&1)" in
29 : ${branches='next master maint pu'}
31 for branch
in $branches
33 if git rev-parse
--verify refs
/heads
/$branch 2>/dev
/null
35 echo "** $branch **" &&
36 git checkout
$branch &&
40 nstalled
=all ||
exit $?
49 maint | maint-
* | master
)
55 wing-fc?|kunrun-vmw-fc5
)
57 *) echo >&2 "What are you talking about???"
61 echo "* Building $1" &&
63 make $J git
>.
/:all.log
2>&1 &&
64 V
=`./git --version | sed -e 's/git version //'` &&
65 make rpm
>>.
/:all.log
2>&1 &&
68 # This is not the primary build machine.
72 echo >&2 "Done -- move RPMS to the master machine."
75 tar cf
"$HOME/$V.tar" \
76 RPMS
/$arch/*-$V-*.
$arch.rpm
&&
82 echo >&2 "Failed with status $status"
87 make dist-doc
>>.
/:all.log
2>&1 &&
88 ln -f git-
$V.
tar.gz
$G/.
&&
89 ln -f git-htmldocs-
$V.
tar.gz git-manpages-
$V.
tar.gz
$G/.
91 esac >>.
/:all.log
2>&1 &&
93 *.rc
[0-9]* |
*-rc[0-9]*)
94 mkdir
-p $G/testing
&&
97 for rr
in $HOME/rpms
/RPMS
/$a/*-$V-*.
$a.rpm
99 test -f "$rr" ||
continue
100 ln -f "$rr" $G/testing
/.
103 ln -f $HOME/rpms
/SRPMS
/git-
$V-*.src.rpm
$G/testing
/.
106 mkdir
-p $G/RPMS
/$arch $G/RPMS
/SRPMS
&&
109 mkdir
-p "$G/RPMS/$a" &&
110 for rr
in $HOME/rpms
/RPMS
/$a/*-$V-*.
$a.rpm
112 test -f "$rr" ||
continue
113 ln -f "$rr" $G/RPMS
/$a/.
116 ln -f $HOME/rpms
/SRPMS
/git-
$V-*.src.rpm
$G/RPMS
/SRPMS
/.
&&
118 # I do not know how it exits, and I do not care much.
121 /usr
/local
/bin
/yummy
$G/RPMS
/$a
123 /usr
/local
/bin
/yummy
$G/RPMS
/SRPMS
125 } >>.
/:all.log
2>&1 ;;