maven 02/07/03 03:25:38
Modified: bin getsources.sh
Log:
The Script can now _correctly_ check if the source was previously checked out or
not. It it was, it only performs an update. - smor
Revision Changes Path
1.3 +3 -4 maven/bin/getsources.sh
Index: getsources.sh
===================================================================
RCS file: /usr/local/cvs-repository/maven/bin/getsources.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- getsources.sh 3 Jul 2002 07:40:48 -0000 1.2
+++ getsources.sh 3 Jul 2002 08:25:38 -0000 1.3
@@ -13,10 +13,9 @@
for project in $PROJECTS; do
echo [getsource] $project
POMFILE=`pwd`/$project/project.xml
- echo $POMFILE
+ #echo $POMFILE
if [ -e $POMFILE ]
then
- POM=`cat $POMFILE`
CONNECTION=`cat $POMFILE | grep \<connection\> | cut -d \> -f 2 | cut -d \< -f
1`
PASSWORD=`cat $POMFILE | grep \<password\> | cut -d \> -f 2 | cut -d \< -f 1`
# If the <connection/> tag is not defined, do nothing
@@ -26,7 +25,7 @@
CVSROOT=:`echo $CONNECTION | cut -d : -f '3 4 5 '`
MODULE=`echo $CONNECTION | cut -d : -f 6`
echo CVSROOT $CVSROOT - MODULE : $MODULE - PASSWORD : $PASSWORD
- if [ ! -e $CVSCO/$project ]
+ if [ ! -e $CVSCO/$MODULE ]
then
cd $BASEDIR/bin
ant -Dserver=$CVSROOT -Dpassword=$PASSWORD
@@ -34,7 +33,7 @@
cd $CVSCO
cvs -d $CVSROOT co $MODULE
else
- cd $CVSCO/$project
+ cd $CVSCO/$MODULE
echo Updating $project\'s source !
cvs -Q update -d -P -A
fi
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>