Author: jfrederic.clere(a)jboss.com
Date: 2009-08-12 05:48:06 -0400 (Wed, 12 Aug 2009)
New Revision: 2541
Modified:
trunk/build/unix/buildsrc.cluster.sh
Log:
Allow branches to be built.
Modified: trunk/build/unix/buildsrc.cluster.sh
===================================================================
--- trunk/build/unix/buildsrc.cluster.sh 2009-08-12 08:15:42 UTC (rev 2540)
+++ trunk/build/unix/buildsrc.cluster.sh 2009-08-12 09:48:06 UTC (rev 2541)
@@ -40,11 +40,17 @@
# we need something like:
#
http://anonsvn.jboss.org/repos/mod_cluster/trunk/
-if [ "$tag" = "trunk" ]; then
-
URLBASE=http://anonsvn.jboss.org/repos/mod_cluster/trunk/
-else
-
URLBASE=http://anonsvn.jboss.org/repos/mod_cluster/tags/${tag}
-fi
+case $tag in
+ trunk)
+
URLBASE=http://anonsvn.jboss.org/repos/mod_cluster/trunk/
+ ;;
+ branches/*)
+
URLBASE=http://anonsvn.jboss.org/repos/mod_cluster/${tag}/
+ ;;
+ *)
+
URLBASE=http://anonsvn.jboss.org/repos/mod_cluster/tags/${tag}
+ ;;
+esac
(cd $package_src_dir/srclib
svn export ${URLBASE} mod_cluster
@@ -53,6 +59,11 @@
echo "svn co ${URLBASE} mod_cluster FAILED"
exit 1
fi
+if [ ! -d $package_src_dir/srclib/mod_cluster ]; then
+ echo "$package_src_dir/srclib/mod_cluster not found!"
+ echo "svn co ${URLBASE} mod_cluster FAILED"
+ exit 1
+fi
#
# Copy the files to httpd src.