Automate the release procedure a bit more.

This commit is contained in:
Junio C Hamano 2006-06-10 19:24:12 -07:00
parent 4efc984b38
commit 39b4cb198b

View File

@ -35,15 +35,30 @@ case "$1" in
;;
maint | master)
arch=x86_64
case `hostname` in
hera.kernel.org)
arch=x86_64 ;;
old-hera.kernel.org)
arch=i386 ;;
*) echo >&2 "What are you talking about???"
exit 1 ;;
esac &&
: >./:all.log &&
mkdir -p $G/RPMS/$arch $G/RPMS/SRPMS &&
echo "* Building $1"
echo "* Building $1" &&
git checkout "$1" &&
make rpm >./:rpm.log 2>&1 &&
make $J git >>./:rpm.log 2>&1 &&
make rpm >>./:all.log 2>&1 &&
case "$arch" in
i386)
status=$?
echo >&2 "Done -- move RPMS to the master machine."
make clean
exit $status ;;
esac &&
make dist-doc >>./:all.log 2>&1 &&
make $J git >>./:all.log 2>&1 &&
V=`./git --version | sed -e 's/git version //'` &&
ln git-$V.tar.gz $G/. &&
ln git-$V.tar.gz git-htmldocs-$V.tar.gz git-manpages-$V.tar.gz $G/. &&
ln $HOME/rpms/RPMS/$arch/git*-$V-* $G/RPMS/$arch/. &&
ln $HOME/rpms/SRPMS/git-$V-* $G/RPMS/SRPMS/. &&
{
@ -51,8 +66,7 @@ maint | master)
/usr/local/bin/yummy $G/RPMS/$arch
/usr/local/bin/yummy $G/RPMS/SRPMS
:
} &&
rm -fr ./:rpm.log &&
} >>./:all.log 2>&1 &&
make clean &&
: ;;