git/DoKernelOrg
Junio C Hamano df5cc80ec9 Introduce an easier to follow "next" branch.
The "pu" branch is a bit too hard to follow.  Let's introduce
"next" branch, which is slightly ahead of "master".  The topic
branches merged into it are not to be rebased, and changes to
the topic branches are first applied to them and then merged
into the "next" branch.  What this means is that the branch is
far easier to follow compared to the "pu" branch since there
will be no rewinding/rebasing involved.
2006-02-08 22:08:30 -08:00

62 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
J='-l 4 -j'
G=/pub/software/scm/git &&
cd $HOME/git &&
make clean >/dev/null 2>&1 &&
git reset --hard &&
make clean >/dev/null 2>&1 &&
git checkout master &&
git pull . origin &&
make clean >/dev/null 2>&1 &&
case "$1" in
'')
echo "* Building all"
branches='next master maint'
nstalled=install
for branch in $branches
do
if git-rev-parse --verify refs/heads/$branch 2>/dev/null
then
echo "** $branch **" &&
git checkout $branch &&
make $J $nstalled &&
make test &&
make clean &&
nstalled=all || exit $?
else
echo
echo "* NO $branch"
echo
fi
done >:all.log 2>&1
;;
maint | master)
arch=x86_64
mkdir -p $G/RPMS/$arch $G/RPMS/SRPMS &&
echo "* Building $1"
git checkout "$1" &&
make rpm >./:rpm.log 2>&1 &&
make $J git >>./:rpm.log 2>&1 &&
V=`./git --version | sed -e 's/git version //'` &&
ln git-$V.tar.gz $G/. &&
ln $HOME/rpms/RPMS/$arch/git*-$V-* $G/RPMS/$arch/. &&
ln $HOME/rpms/SRPMS/git-$V-* $G/RPMS/SRPMS/. &&
{
# I do not know how it exits, and I do not care much.
/usr/local/bin/yummy $G/RPMS/$arch
/usr/local/bin/yummy $G/RPMS/SRPMS
:
} &&
rm -fr ./:rpm.log &&
make clean &&
: ;;
esac || exit $?
git checkout master