From continuum-commits-return-421-apmail-maven-continuum-commits-archive=maven.apache.org@maven.apache.org Wed Jul 06 11:07:57 2005 Return-Path: Delivered-To: apmail-maven-continuum-commits-archive@www.apache.org Received: (qmail 90915 invoked from network); 6 Jul 2005 11:07:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jul 2005 11:07:56 -0000 Received: (qmail 61607 invoked by uid 500); 6 Jul 2005 11:07:56 -0000 Delivered-To: apmail-maven-continuum-commits-archive@maven.apache.org Received: (qmail 61585 invoked by uid 500); 6 Jul 2005 11:07:56 -0000 Mailing-List: contact continuum-commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-dev@maven.apache.org Delivered-To: mailing list continuum-commits@maven.apache.org Received: (qmail 61572 invoked by uid 99); 6 Jul 2005 11:07:55 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 06 Jul 2005 04:07:55 -0700 Received: (qmail 90898 invoked by uid 65534); 6 Jul 2005 11:07:53 -0000 Message-ID: <20050706110753.90896.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r209445 - /maven/continuum/trunk/build-world.sh Date: Wed, 06 Jul 2005 11:07:52 -0000 To: continuum-commits@maven.apache.org From: trygvis@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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