continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tryg...@apache.org
Subject svn commit: r191648 - /maven/continuum/trunk/build-world.sh
Date Tue, 21 Jun 2005 10:55:47 GMT
Author: trygvis
Date: Tue Jun 21 03:55:45 2005
New Revision: 191648

URL: http://svn.apache.org/viewcvs?rev=191648&view=rev
Log:
o Adding a option to update the build-world.sh script itself.

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=191648&r1=191647&r2=191648&view=diff
==============================================================================
--- maven/continuum/trunk/build-world.sh (original)
+++ maven/continuum/trunk/build-world.sh Tue Jun 21 03:55:45 2005
@@ -3,11 +3,12 @@
 set -x
 set -e
 
-m2_repo="https://svn.apache.org/repos/asf/maven/components/trunk maven"
+m2_repo="http://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
+self_update=0
 
 function usage
 {
@@ -20,10 +21,27 @@
   case $1 in 
     --clean) clean=1 ;;
     --force-build) force_build=1 ;;
+    --self-update) self_update=1 ;;
     *) usage ;;
   esac
   shift
 done
+
+##############################################################################
+# Self update
+##############################################################################
+
+if [ $self_update == "1" ]
+then
+  trunk="https://svn.apache.org/repos/asf/maven/continuum/trunk"
+  script="build-world.sh"
+  echo "Saving $script to $script.bak"
+  cp $script $script.bak
+  echo "Downloading $trunk/$script to $script.tmp from Subversion"
+  svn cat $trunk/$script > $script.tmp
+  mv $script.tmp $script
+  exit 0
+fi
 
 ##############################################################################
 # Clean up



Mime
View raw message