[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeextragear-1/scripts
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2003-10-24 17:45:57
[Download RAW message or body]

CVS commit by trueg: 

when retrieving the app from a branch or tag it normally does not make sense
to also use the tag on the admin and module cvs. That's why I introduced the
--noadmintag parameter which makes the script not use a tag specified
by --usetag when getting the admin and module dir. I don't think anyone created
a branch or tag in kde-common everytime he or she branches his or her application. ;)
At least I don't.


  M +14 -2     cvsExtract.sh   1.19


--- kdeextragear-1/scripts/cvsExtract.sh  #1.18:1.19
@@ -43,4 +43,6 @@
 [ -z "$CVSROOT" ] && export CVSROOT=":pserver:anonymous@anoncvs.kde.org:/home/kde"
 CVSBASEDIR="`pwd`"
+USETAGFORADMIN="yes"
+
 #export CVSROOT=":pserver:kalass@cvs.kde.org:2401/home/kde"
 
@@ -102,4 +104,7 @@
     --usetag <TAG/BRANCH>      Use the specified tag or branch. 
                                Only for '-r CVS'.
+    --noadmintag               This makes only sense in combination with --usetag.
+                               The tag will only be used for the application files
+                               and not for the admin and the module data.
     -h|--help                  This Help"
 }
@@ -165,4 +170,7 @@
         GETI18N="no"
       ;;
+    --noadmintag)
+        USETAGFORADMIN=="no"
+      ;;
     --listtags)
         # we do not call lisstags and exit here,
@@ -247,5 +255,5 @@
         CVS)
             # only get the toplevel directory
-            cvs co ${CVS_CHECKOUT_OPTIONS} -d "$2" -l "${MODULENAME}"
+            cvs co ${CVS_CHECKOUT_OPTIONS_ADMIN} -d "$2" -l "${MODULENAME}"
         ;;
         LOCAL)
@@ -288,5 +296,5 @@
     case "$1" in
         CVS)
-            cvs co ${CVS_CHECKOUT_OPTIONS} -d "$2" ${KDECOMMON}/admin
+            cvs co ${CVS_CHECKOUT_OPTIONS_ADMIN} -d "$2" ${KDECOMMON}/admin
         ;;
         LOCAL)
@@ -498,4 +506,8 @@
 if [ -d "${APPDIR}/src" ] || [ -d "${APPDIR}/${APPNAME}" ] ;then
     flatDirStructure="no"
+fi
+
+if [ $USETAGFORADMIN = "yes" ]; then
+    CVS_CHECKOUT_OPTIONS_ADMIN=CVS_CHECKOUT_OPTIONS
 fi
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic