[csw-devel] SF.net SVN: opencsw:[322] gar-wrapper/mgar

skayser at users.sourceforge.net skayser at users.sourceforge.net
Wed Feb 23 10:33:43 CET 2011


Revision: 322
          http://opencsw.svn.sourceforge.net/opencsw/?rev=322&view=rev
Author:   skayser
Date:     2011-02-23 09:33:42 +0000 (Wed, 23 Feb 2011)

Log Message:
-----------
mgar: commit WIP for importing an existing GAR tree

Modified Paths:
--------------
    gar-wrapper/mgar

Modified: gar-wrapper/mgar
===================================================================
--- gar-wrapper/mgar	2011-02-22 17:42:44 UTC (rev 321)
+++ gar-wrapper/mgar	2011-02-23 09:33:42 UTC (rev 322)
@@ -161,16 +161,29 @@
   return 0
 }
 
+# WIP stub for re-using an existing GAR tree instead of checking out a full one
+function convert_existing_buildtree {
+  __buildtree="$1"
+  echo "Checking for and removing obsolete gar links from the package build tree."
+  find $__buildtree \
+    -name work -prune -o -name cookies -prune -o \
+    -type s -name gar | grep /gar$ | xargs rm
+  #if [ "$1" == "--use-existing" ]; then { shift; __fullco=0; } || { shift; __fullco=1; }
+}
+
 function init_buildtree {
   __buildtree="$1"
+
   if [ -a "$__buildtree" ]; then
     echo "The directory $__buildtree already exists. Please remove it." >&2
     exit 2
   fi
+
+  echo "Initializing the package build tree at $__buildtree"
   mkdir -p $__buildtree/.buildsys
-  echo "Initializing the package build tree at $__buildtree"
   svn co $GAR_REPO "$__buildtree/.buildsys"
   svn co --depth empty $PKG_REPO "$__buildtree"
+
   echo
   echo "Initialized the package build tree at $__buildtree."
   echo "Registering the package build tree location in ~/.garrc"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list