Automate the release procedure a bit more.
Junio C Hamano committed
Jun 10, 2006 at 19:24 UTC
39b4cb198b0cec9b564b74ec2b40a5840da4cda2
1 file changed
+22
-8
DoKernelOrg
+22
-8
@@ -35,15 +35,30 @@ case "$1" in
35
;;
36
37
maint | master)
38
- arch=x86_64
38
+ case `hostname` in
39
+ hera.kernel.org)
40
+ arch=x86_64 ;;
41
+ old-hera.kernel.org)
42
+ arch=i386 ;;
43
+ *) echo >&2 "What are you talking about???"
44
+ exit 1 ;;
45
+ esac &&
46
+ : >./:all.log &&
47
mkdir -p $G/RPMS/$arch $G/RPMS/SRPMS &&
40
-
41
- echo "* Building $1"
48
+ echo "* Building $1" &&
49
git checkout "$1" &&
43
- make rpm >./:rpm.log 2>&1 &&
44
- make $J git >>./:rpm.log 2>&1 &&
50
+ make rpm >>./:all.log 2>&1 &&
51
+ case "$arch" in
52
+ i386)
53
+ status=$?
54
+ echo >&2 "Done -- move RPMS to the master machine."
55
+ make clean
56
+ exit $status ;;
57
+ esac &&
58
+ make dist-doc >>./:all.log 2>&1 &&
59
+ make $J git >>./:all.log 2>&1 &&
60
V=`./git --version | sed -e 's/git version //'` &&
46
- ln git-$V.tar.gz $G/. &&
61
+ ln git-$V.tar.gz git-htmldocs-$V.tar.gz git-manpages-$V.tar.gz $G/. &&
62
ln $HOME/rpms/RPMS/$arch/git*-$V-* $G/RPMS/$arch/. &&
63
ln $HOME/rpms/SRPMS/git-$V-* $G/RPMS/SRPMS/. &&
64
{
@@ -51,8 +66,7 @@ maint | master)
66
/usr/local/bin/yummy $G/RPMS/$arch
67
/usr/local/bin/yummy $G/RPMS/SRPMS
68
:
54
- } &&
55
- rm -fr ./:rpm.log &&
69
+ } >>./:all.log 2>&1 &&
70
make clean &&
71
72
: ;;