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

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Feb 15 07:04:44 EST 2010


Author: pete.muir at jboss.org
Date: 2010-02-15 07:04:43 -0500 (Mon, 15 Feb 2010)
New Revision: 12056

Modified:
   build/trunk/checkout.sh
Log:
remove use of exit

Modified: build/trunk/checkout.sh
===================================================================
--- build/trunk/checkout.sh	2010-02-15 10:05:11 UTC (rev 12055)
+++ build/trunk/checkout.sh	2010-02-15 12:04:43 UTC (rev 12056)
@@ -16,41 +16,9 @@
 EOF
 }
 
-DESTINATION=`pwd`
-READONLY=0
-VERBOSE=0
-SVNBASE=
-SVNARGS=
-SVNUPDATE=1
+work()
+{
 
-MODULES="remoting drools faces international persistence security xml"
-
-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"
@@ -109,3 +77,46 @@
    svncmd="svn co $SVNARGS $url $DESTINATION/build"
 fi
 $svncmd
+}
+
+DESTINATION=`pwd`
+READONLY=0
+VERBOSE=0
+SVNBASE=
+SVNARGS=
+SVNUPDATE=1
+
+MODULES="remoting drools faces international persistence security xml"
+
+while getopts “hrd:v” OPTION
+do
+     case $OPTION in
+         h)
+             usage
+             ;;
+         d)
+             DESTINATION=$OPTARG
+             work;
+             ;;
+         du)
+             SVNUPDATE=0
+             work;
+             ;;
+         r)
+             READONLY=1
+             work;
+             ;;
+         v)
+             VERBOSE=1
+             work;
+             ;;
+         [?])
+             usage;
+             ;;
+     esac
+done
+
+if [[ "$#" -eq "0" ]]
+then
+   work;
+fi



More information about the seam-commits mailing list