[seam-commits] Seam SVN: r11833 - build/trunk.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Dec 16 10:11:29 EST 2009


Author: pete.muir at jboss.org
Date: 2009-12-16 10:11:29 -0500 (Wed, 16 Dec 2009)
New Revision: 11833

Added:
   build/trunk/checkout.sh
Log:
add checkout script

Added: build/trunk/checkout.sh
===================================================================
--- build/trunk/checkout.sh	                        (rev 0)
+++ build/trunk/checkout.sh	2009-12-16 15:11:29 UTC (rev 11833)
@@ -0,0 +1,87 @@
+#!/bin/sh
+
+usage()
+{
+cat << EOF
+usage: $0 options
+
+This script will check out Seam.
+
+OPTIONS:
+   -h      Show this message
+   -d      Destination directory, otherwise the PWD is used 
+   -r      Checkout in readonly mode from anonsvn
+   -v      Be more verbose
+   -du     Don't run SVN update if the module already exists
+EOF
+}
+
+DESTINATION=`pwd`
+READONLY=0
+VERBOSE=0
+SVNBASE=
+SVNARGS=
+SVNUPDATE=1
+
+MODULES="remoting bpm captcha drools excel faces framework international jms mail pdf persistence resteasy rss security"
+
+while getopts “h:r:d:v” OPTION
+do
+     case $OPTION in
+         h)
+             usage
+             exit 1
+             ;;
+         d)
+             DESTINATION=$OPTARG
+             ;;
+         du)
+             SVNUPDATE=0
+             ;;
+         r)
+             READONLY=1
+             ;;
+         v)
+             VERBOSE=1
+             ;;
+         ?)
+             usage
+             exit
+             ;;
+     esac
+done
+
+if [ "$READONLY" -eq "1" ]
+then
+   SVNBASE="http://anonsvn.jboss.org/repos/seam/modules"
+else
+   SVNBASE="https://svn.jboss.org/repos/seam/modules"
+fi
+
+if [ "$VERBOSE" -eq "0" ]
+then
+   SVNARGS="--quiet"
+fi
+  
+if  [ -d $DESTINATION ]
+then
+   echo "Checking out to $DESTINATION"
+else
+   echo "Creating directory $DESTINATION to checkout to"
+   mkdir $DESTINATION
+fi
+
+for module in $MODULES
+do
+   url="$SVNBASE/$module/trunk"
+   moduledir=$DESTINATION/$module
+   if [ -d $moduledir ]
+   then
+      echo "Updating $module"
+      svncmd="svn up $SVNARGS $DESTINATION/$module"
+   else
+      echo "Checking out $module"
+      svncmd="svn co $SVNARGS $url $DESTINATION/$module"
+   fi
+   $svncmd
+done


Property changes on: build/trunk/checkout.sh
___________________________________________________________________
Name: svn:executable
   + *



More information about the seam-commits mailing list