You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by tr...@apache.org on 2005/06/21 01:30:38 UTC
svn commit: r191586 - /maven/continuum/trunk/build-world.sh
Author: trygvis
Date: Mon Jun 20 16:30:38 2005
New Revision: 191586
URL: http://svn.apache.org/viewcvs?rev=191586&view=rev
Log:
o Adding a script that does a clean checkout of m2 and continuum and builds
everything. Works in my back yard, probably not in yours.
Added:
maven/continuum/trunk/build-world.sh (with props)
Added: maven/continuum/trunk/build-world.sh
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/build-world.sh?rev=191586&view=auto
==============================================================================
--- maven/continuum/trunk/build-world.sh (added)
+++ maven/continuum/trunk/build-world.sh Mon Jun 20 16:30:38 2005
@@ -0,0 +1,89 @@
+#!/bin/bash
+
+set -x
+set -e
+
+m2_repo="https://svn.apache.org/repos/asf/maven/components/trunk maven"
+continuum_repo="https://svn.apache.org/repos/asf/maven/continuum/trunk continuum"
+
+clean=0
+force_build=0
+
+function usage
+{
+ echo "Usage: $0 [--clean] [--force-build]"
+ exit 1
+}
+
+while [ "$1" ];
+do
+ case $1 in
+ --clean) clean=1 ;;
+ --force-build) force_build=1 ;;
+ *) usage ;;
+ esac
+ shift
+done
+
+##############################################################################
+# Clean up
+##############################################################################
+
+if [ $clean == "1" ]
+then
+ rm -rf maven
+ rm -rf continuum
+ rm -rf $HOME/repository
+ rm -rf $HOME/m2
+ mkdir -p $HOME/repository
+fi
+
+cp -r sun-repo/* $HOME/repository
+
+##############################################################################
+# Check out the sources
+##############################################################################
+
+svn co $m2_repo > m2_update
+
+tmp=`grep -v revision m2_update | wc -l`
+echo "Updated"
+if [ "$tmp" -eq 0 ]
+then
+ m2_updated=0
+else
+ m2_updated=1
+fi
+
+svn co $continuum_repo > continuum_update
+tmp=`grep -v revision continuum_update | wc -l`
+if [ "$tmp" -eq 0 ]
+then
+ continuum_updated=0
+else
+ continuum_updated=1
+fi
+
+##############################################################################
+# Build
+##############################################################################
+
+PATH=$HOME/m2/bin:$PATH
+M2_HOME=$HOME/m2
+unset M2_HOME
+
+echo M2_HOME: $M2_HOME
+
+if [ $m2_updated -eq 1 -o $clean -eq 1 -o $force_build -eq 1 ]
+then
+ cd maven
+ M2_HOME=$HOME/m2 bash -x m2-bootstrap-all.sh
+ cd ..
+fi
+
+if [ $continuum_updated -eq 1 -o $clean -eq 1 -o $force_build -eq 1 ]
+then
+ cd continuum
+ bash -x build.sh -X
+ cd ..
+fi
Propchange: maven/continuum/trunk/build-world.sh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/trunk/build-world.sh
------------------------------------------------------------------------------
svn:executable = *