continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r209445 - /maven/continuum/trunk/build-world.sh
Date Wed, 06 Jul 2005 11:07:52 GMT
Author: trygvis
Date: Wed Jul  6 04:07:48 2005
New Revision: 209445

URL: http://svn.apache.org/viewcvs?rev=209445&view=rev
Log: (empty)

Modified:
    maven/continuum/trunk/build-world.sh

Modified: maven/continuum/trunk/build-world.sh
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/build-world.sh?rev=209445&r1=209444&r2=209445&view=diff
==============================================================================
--- maven/continuum/trunk/build-world.sh (original)
+++ maven/continuum/trunk/build-world.sh Wed Jul  6 04:07:48 2005
@@ -6,12 +6,13 @@
 continuum_repo="http://svn.apache.org/repos/asf/maven/continuum/trunk"
 
 clean=0
-force_build=0
+force_build_maven_2=0
+force_build_continuum=0
 self_update=0
 
 usage()
 {
-  echo "Usage: $0 [--clean] [--force-build] [--self-update]"
+  echo "Usage: $0 [--clean] [--force-build] [--force-build-maven-2] [--force-build-continuum]
[--self-update]"
   exit 1
 }
 
@@ -19,7 +20,9 @@
 do
   case $1 in 
     --clean) clean=1 ;;
-    --force-build) force_build=1 ;;
+    --force-build-maven-2) force_build_maven_2=1 ;;
+    --force-build-continuum) force_build_continuum=1 ;;
+    --force-build) force_build_maven_2=1; force_build_continuum=1 ;;
     --self-update) self_update=1 ;;
     *) usage ;;
   esac
@@ -63,6 +66,7 @@
 
 if [ $clean -eq "1" ]
 then
+  echo "Cleaning"
   rm -rf $root/maven
   rm -rf $root/continuum
   rm -rf $root/repository
@@ -96,6 +100,7 @@
 to the real Maven 2 repository before each build to make sure the Maven 2
 repository can be cleaned before a build and still not miss any dependencies."
 else
+  echo "Copying over the artifacs in sun-repo."
   cp -r sun-repo/* $root/repository
 fi
 
@@ -103,6 +108,8 @@
 # Check out the sources
 ##############################################################################
 
+cd $root
+
 # Maven 2
 first_build=0
 if [ ! -d maven ]
@@ -110,7 +117,7 @@
   first_build=1
 fi
 
-cd $root
+echo "Updating the Maven 2 checkout."
 svn co $m2_repo maven > m2_update
 
 tmp=`grep -v revision m2_update | wc -l`
@@ -128,6 +135,7 @@
   first_build=1
 fi
 
+echo "Updating the Continuum checkout."
 svn co $continuum_repo continuum > continuum_update
 
 tmp=`grep -v revision continuum_update | wc -l`
@@ -144,17 +152,18 @@
 
 PATH=$M2_HOME/bin:$PATH
 
-echo PATH: $PATH
-echo M2_HOME: $M2_HOME
-
-if [ $build_m2 -eq 1 -o $clean -eq 1 -o $force_build -eq 1 ]
+if [ $build_m2 -eq 1 -o $clean -eq 1 -o $force_build_maven_2 -eq 1 ]
 then
+(
   cd maven
-  bash -x m2-bootstrap-all.sh
-  cd ..
+  echo "Bootstrapping Maven 2."
+  M2_HOME=$M2_HOME bash m2-bootstrap-all.sh
+)
+else
+  echo "Not building Maven 2."
 fi
 
-if [ ! -x m2 ]
+if [ -z "`which m2`" ]
 then
   echo "WARN: Could not find m2 in PATH. For the build scripts for Continuum to
 work m2 has to be in the PATH. 
@@ -167,9 +176,12 @@
   exit 1
 fi
 
-if [ $build_continuum -eq 1 -o $clean -eq 1 -o $force_build -eq 1 ]
+if [ $build_continuum -eq 1 -o $clean -eq 1 -o $force_build_continuum -eq 1 ]
 then
+  echo "Building Continuum."
   cd continuum
-  bash -x build.sh -X
+  bash build.sh
   cd ..
+else
+  echo "Not building Continuum."
 fi



Mime
View raw message