@matheusbsbs / matheus-bagliano / commits / 609c72e2e6
Fork 0

Update to prepare catching perl-Git RPM

Junio C Hamano committed Jun 30, 2006 at 12:47 UTC 609c72e2e6a05c43881191d80e933331a67a5680
1 file changed +19 -6
DoKernelOrg
+19 -6
@@ -55,23 +55,36 @@ maint | master)
55 mkdir -p $G/RPMS/$arch $G/RPMS/SRPMS &&
56 echo "* Building $1" &&
57 git checkout "$1" &&
58 + make $J git >./:all.log 2>&1 &&
59 + V=`./git --version | sed -e 's/git version //'` &&
60 make rpm >>./:all.log 2>&1 &&
61 case "$arch" in
62 i386)
63 status=$?
62 - echo >&2 "Done -- move RPMS to the master machine."
63 - make clean
64 + case "$status" in
65 + 0)
66 + echo >&2 "Done -- move RPMS to the master machine."
67 + (
68 + cd "$HOME/rpms/RPMS/$arch" &&
69 + tar cf "$HOME/$V.tar" *-$V-*.$a.rpm &&
70 + ls -ld $HOME/$V.tar
71 + )
72 + make clean
73 + ;;
74 + ?)
75 + echo >&2 "Failed with status $status"
76 + ;;
77 + esac
78 exit $status ;;
79 esac &&
80 make dist-doc >>./:all.log 2>&1 &&
67 - make $J git >>./:all.log 2>&1 &&
68 - V=`./git --version | sed -e 's/git version //'` &&
81 ln git-$V.tar.gz git-htmldocs-$V.tar.gz git-manpages-$V.tar.gz $G/. &&
82 for a in $narch
83 do
72 - ln $HOME/rpms/RPMS/$a/git*-$V-* $G/RPMS/$a/.
84 + mkdir -p "$G/RPMS/$a"
85 + ln $HOME/rpms/RPMS/$a/*-$V-*.$a.rpm $G/RPMS/$a/.
86 done &&
74 - ln $HOME/rpms/SRPMS/git-$V-* $G/RPMS/SRPMS/. &&
87 + ln $HOME/rpms/SRPMS/git-$V-*.src.rpm $G/RPMS/SRPMS/. &&
88 {
89 # I do not know how it exits, and I do not care much.
90 for a in $narch