Skip to content

Commit 85d465e

Browse files
author
Junio C Hamano
committed
Update DoKernelOrg to make it easier not to install RPMs
1 parent d35f38b commit 85d465e

File tree

1 file changed

+28
-19
lines changed

1 file changed

+28
-19
lines changed

DoKernelOrg

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ maint | master)
4646
hera.kernel.org)
4747
narch='x86_64 i386'
4848
arch=x86_64 ;;
49-
demeter.kernel.org|demeter|old-hera.kernel.org)
49+
demeter.kernel.org|demeter|old-hera.kernel.org|kunrun-vmw-fc5)
5050
arch=i386 ;;
5151
*) echo >&2 "What are you talking about???"
5252
exit 1 ;;
@@ -57,8 +57,9 @@ maint | master)
5757
make $J git >./:all.log 2>&1 &&
5858
V=`./git --version | sed -e 's/git version //'` &&
5959
make rpm >>./:all.log 2>&1 &&
60-
case "$arch" in
61-
i386)
60+
case "$narch" in
61+
'')
62+
# This is not the primary build machine.
6263
status=$?
6364
case "$status" in
6465
0)
@@ -76,25 +77,33 @@ maint | master)
7677
;;
7778
esac
7879
exit $status ;;
80+
*)
81+
ln git-$V.tar.gz $G/. &&
82+
make dist-doc >>./:all.log 2>&1 &&
83+
ln git-htmldocs-$V.tar.gz git-manpages-$V.tar.gz $G/.
84+
;;
7985
esac >>./:all.log 2>&1 &&
80-
make dist-doc >>./:all.log 2>&1 &&
81-
mkdir -p $G/RPMS/$arch $G/RPMS/SRPMS &&
82-
ln git-$V.tar.gz git-htmldocs-$V.tar.gz git-manpages-$V.tar.gz $G/. &&
83-
for a in $narch
84-
do
85-
mkdir -p "$G/RPMS/$a"
86-
ln $HOME/rpms/RPMS/$a/*-$V-*.$a.rpm $G/RPMS/$a/.
87-
done &&
88-
ln $HOME/rpms/SRPMS/git-$V-*.src.rpm $G/RPMS/SRPMS/. &&
89-
{
90-
# I do not know how it exits, and I do not care much.
86+
case "$NO_RPM_PLEASE" in
87+
'')
88+
mkdir -p $G/RPMS/$arch $G/RPMS/SRPMS &&
9189
for a in $narch
9290
do
93-
/usr/local/bin/yummy $G/RPMS/$a
94-
done
95-
/usr/local/bin/yummy $G/RPMS/SRPMS
96-
:
97-
} >>./:all.log 2>&1 &&
91+
mkdir -p "$G/RPMS/$a"
92+
ln $HOME/rpms/RPMS/$a/*-$V-*.$a.rpm $G/RPMS/$a/.
93+
done &&
94+
ln $HOME/rpms/SRPMS/git-$V-*.src.rpm $G/RPMS/SRPMS/. &&
95+
{
96+
# I do not know how it exits, and I do not care much.
97+
for a in $narch
98+
do
99+
/usr/local/bin/yummy $G/RPMS/$a
100+
done
101+
/usr/local/bin/yummy $G/RPMS/SRPMS
102+
:
103+
} >>./:all.log 2>&1 ;;
104+
*)
105+
echo Skipping RPM ;;
106+
esac &&
98107
make clean &&
99108

100109
: ;;

0 commit comments

Comments
 (0)