Author: jfrederic.clere(a)jboss.com
Date: 2008-01-23 08:38:36 -0500 (Wed, 23 Jan 2008)
New Revision: 1298
Modified:
trunk/build/unix/build.sh
trunk/build/unix/buildsrc.rhel-httpd.sh
Log:
Abort when cvs fails.
Modified: trunk/build/unix/build.sh
===================================================================
--- trunk/build/unix/build.sh 2008-01-23 10:08:50 UTC (rev 1297)
+++ trunk/build/unix/build.sh 2008-01-23 13:38:36 UTC (rev 1298)
@@ -931,6 +931,10 @@
#
# Get the repository of what we build.
override ${build_top}/buildsrc.${PACKAGE}.sh ${svn_tagname} ${package_src_dir}
+if [ $? -ne 0 ]; then
+ echo "override ${build_top}/buildsrc.${PACKAGE}.sh ${svn_tagname}
${package_src_dir} failed"
+ exit 1
+fi
#
# Copy build files
Modified: trunk/build/unix/buildsrc.rhel-httpd.sh
===================================================================
--- trunk/build/unix/buildsrc.rhel-httpd.sh 2008-01-23 10:08:50 UTC (rev 1297)
+++ trunk/build/unix/buildsrc.rhel-httpd.sh 2008-01-23 13:38:36 UTC (rev 1298)
@@ -54,6 +54,10 @@
mkdir -p ${rhel_loc}/httpd
echo "Doing cvs -d ${cvsloc} export ${native_tag_opt} httpd/RHEL-5"
cvs -d ${cvsloc} export ${native_tag_opt} httpd/RHEL-5
+if [ $? -ne 0 ];then
+ echo "cvs failed"
+ exit 1
+fi
mv httpd/RHEL-5 ${rhel_loc}/httpd
rhel_loc=${native_dist}/srclib/httpd/RHEL-5
@@ -74,6 +78,10 @@
else
rm -f $fname
wget --tries=0 --retry-connrefused
http://cvs.devel.redhat.com/repo/dist/httpd/${fname}/${dir}/${fname}
+ if [ $? -ne 0 ];then
+ echo "wget $fname failed"
+ exit 1
+ fi
fi
gunzip -c ${fname} | tar -xf -
dirsources=`gunzip -c ${fname} | tar -tf - | head -1 | awk '{ print $1 }'`