4 G
=/pub
/software
/scm
/git
&&
6 HERE
=$
(git symbolic-ref HEAD
) ||
exit 1
7 THIS
=$
(git describe HEAD
)
10 MAN_BASE_URL="http://www.kernel.org/pub/software/scm/git/docs/"
11 ASCIIDOC_NO_ROFF=YesPlease
21 wing-fc
*|
fc*.siamese.dyndns.org
)
22 eval $
(rpm
--showrc |
sed -ne '
23 s/^-14: dist[ ]*\./dist=/p
24 s/^-14: _build_arch[ ]*/arch=/p
26 test -n "$dist" && test -n "$arch" ||
exit 1
28 *) echo >&2 "What are you talking about???"
32 echo "* Building $THIS" &&
33 make $J git
>.
/:all.log
2>&1 &&
34 V
=`./git --version | sed -e 's/git version //'` &&
35 make $d rpm
>>.
/:all.log
2>&1 &&
38 # This is not the primary build machine.
42 echo >&2 "Done -- move RPMS to the master machine."
45 tar cf
"TARBALL/$V.$arch.$dist.tar" \
46 RPMS
/$arch/*-$V-*.
$dist.
$arch.rpm
&&
47 ls -ld $HOME/rpms
/TARBALL
/$V.
$arch.
$dist.
tar
52 echo >&2 "Failed with status $status"
57 make $d dist-doc
>>.
/:all.log
2>&1 &&
58 ln -f git-
$V.
tar.gz
$G/.
&&
59 ln -f git-htmldocs-
$V.
tar.gz git-manpages-
$V.
tar.gz
$G/.
61 esac >>.
/:all.log
2>&1 &&
63 *.rc
[0-9]* |
*-rc[0-9]*)
64 mkdir
-p $G/testing
&&
67 for rr
in $HOME/rpms
/RPMS
/$a/*-$V-*.
$a.rpm
69 test -f "$rr" ||
continue
70 ln -f "$rr" $G/testing
/.
73 ln -f $HOME/rpms
/SRPMS
/git-
$V-*.src.rpm
$G/testing
/.
76 mkdir
-p $G/RPMS
/$arch $G/RPMS
/SRPMS
&&
79 mkdir
-p "$G/RPMS/$a" &&
80 for rr
in $HOME/rpms
/RPMS
/$a/*-$V-*.
$a.rpm
82 test -f "$rr" ||
continue
83 ln -f "$rr" $G/RPMS
/$a/.
86 ln -f $HOME/rpms
/SRPMS
/git-
$V-*.src.rpm
$G/RPMS
/SRPMS
/.
&&
88 # I do not know how it exits, and I do not care much.
91 /usr
/local
/bin
/yummy
$G/RPMS
/$a
93 /usr
/local
/bin
/yummy
$G/RPMS
/SRPMS
95 } >>.
/:all.log
2>&1 ;;