[med-svn] r7209 - trunk/packages/mgltools/mgltools-external-get-orig-source

Steffen Möller moeller at alioth.debian.org
Sun Jul 3 00:36:18 UTC 2011


Author: moeller
Date: 2011-07-03 00:36:18 +0000 (Sun, 03 Jul 2011)
New Revision: 7209

Modified:
   trunk/packages/mgltools/mgltools-external-get-orig-source/get-orig-source
Log:
Helped info/warning lines.


Modified: trunk/packages/mgltools/mgltools-external-get-orig-source/get-orig-source
===================================================================
--- trunk/packages/mgltools/mgltools-external-get-orig-source/get-orig-source	2011-07-03 00:29:24 UTC (rev 7208)
+++ trunk/packages/mgltools/mgltools-external-get-orig-source/get-orig-source	2011-07-03 00:36:18 UTC (rev 7209)
@@ -19,7 +19,7 @@
 DEBPACKAGE=$PREFIX`echo $package|sed "s/DIST//g"| tr 'A'-'Z' 'a'-'z'`
 
 # do some stuff
-echo "get $package (-> $DEBPACKAGE) from branch $branch"
+echo "I: get $package (-> $DEBPACKAGE) from branch $branch"
 
 loginDone=`grep "$REMOTECVSROOT" ~/.cvspass|wc -l`
 if [ "$loginDone" == "0" ]; then
@@ -27,19 +27,23 @@
 fi
 
 if [ -d $MGLTOOLSCVS ]; then
-  echo "cvs directory already available"
+  echo "I: cvs directory already available"
 else
-  echo "create directory $MGLTOOLSCVS"
+  echo "I: create directory $MGLTOOLSCVS to store new CVS checkout"
   mkdir $MGLTOOLSCVS
 fi
 
 if [ -d $MGLTOOLSCVS/$package ]; then
-  echo "... checkout already done"
-  echo "    check whether this is the correct tag: `cat $MGLTOOLSCVS/$package/CVS/Tag`"
+  echo "I: ... checkout already done"
+  if [ -r "$MGLTOOLSCVS/$package/CVS/Tag" ]; then
+    echo "W:     check whether this is the correct tag: `cat $MGLTOOLSCVS/$package/CVS/Tag`"
+  else
+    echo "W:     no tag file found. You may be working on the trunk, not on the release branch. Is that what you want?"
+  fi
   sleep 3
   (cd $MGLTOOLSCVS/$package && $CVS -z3 update -d)
 else
-  echo "... do checkout"
+  echo "I: ... now performing checkout"
   (cd $MGLTOOLSCVS &&  $CVS -z3 -d$REMOTECVSROOT co -r $branch $package)
 fi
 




More information about the debian-med-commit mailing list