From: Junio C Hamano Date: Sun, 11 Jun 2006 02:24:12 +0000 (-0700) Subject: Automate the release procedure a bit more. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=39b4cb198b0cec9b564b74ec2b40a5840da4cda2;p=git.git Automate the release procedure a bit more. --- diff --git a/DoKernelOrg b/DoKernelOrg index 93426523..53d87bff 100755 --- a/DoKernelOrg +++ b/DoKernelOrg @@ -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 && : ;;