Author: jfrederic.clere(a)jboss.com
Date: 2012-09-11 03:07:12 -0400 (Tue, 11 Sep 2012)
New Revision: 2963
Modified:
trunk/build/unix/buildsrc.cluster.sh
Log:
Add git logic.
Modified: trunk/build/unix/buildsrc.cluster.sh
===================================================================
--- trunk/build/unix/buildsrc.cluster.sh 2012-09-10 16:11:12 UTC (rev 2962)
+++ trunk/build/unix/buildsrc.cluster.sh 2012-09-11 07:07:12 UTC (rev 2963)
@@ -40,34 +40,51 @@
# we need something like:
#
http://anonsvn.jboss.org/repos/mod_cluster/trunk/
-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
+#
https://github.com/modcluster/mod_cluster/tarball/mod-cluster-1.0.6.GA
+if [ $USE_GIT ]; then
+ echo "Using GIT!!!"
+ case $tag in
+ trunk)
+
URLBASE=http://github.com/modcluster/mod_cluster/tarball/master
+ ;;
+ *)
+ URLBASE=
http://github.com/modcluster/mod_cluster/tarball/${tag}
+ ;;
+ esac
+else
+ 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
+fi
echo "$tag using $URLBASE"
-if [ $USE_GIT }; then
- echo "USE GIT!!!"
- exit 1
-fi
(cd $package_src_dir/srclib
-svn export ${URLBASE} mod_cluster
+if [ $USE_GIT ]; then
+ wget ${URLBASE}
+ gzip -d $tag | tar xvf -
+ mod_cluster_dir=`ls | grep modcluster-mod_cluster`
+ mv ${mod_cluster_dir} mod_cluster
+else
+ svn export ${URLBASE} mod_cluster
+fi
)
if [ $? -ne 0 ]; then
- echo "svn co ${URLBASE} mod_cluster FAILED"
+ echo "checkout of ${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"
+ echo "checkout ${URLBASE} mod_cluster FAILED"
exit 1
fi