Update of /cvsroot/fink/scripts/pdb
In directory sc8-pr-cvs17:/tmp/cvs-serv19483

Modified Files:
      Tag: redesign_pdb
        refresh dumprelease 
Log Message:
Making refresh and dumprelease work on non finch machines as well, where
there is no local cvs checkout to rsync from


Index: refresh
===================================================================
RCS file: /cvsroot/fink/scripts/pdb/refresh,v
retrieving revision 1.18.2.6
retrieving revision 1.18.2.7
diff -u -d -r1.18.2.6 -r1.18.2.7
--- refresh     10 Sep 2007 20:22:02 -0000      1.18.2.6
+++ refresh     11 Sep 2007 06:11:24 -0000      1.18.2.7
@@ -17,11 +17,20 @@
   fi
 done
 
-echo "Updating [EMAIL PROTECTED] from CVS..."
 if [ -d fink ] && [ -d /var/www/finkinfo/dists.public ]; then
+  echo "Updating fink/ via local rsync..."
   rsync --delete -avr /var/www/finkinfo/dists.public/ fink/
 else
-  cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/fink co -d fink dists
+  if [ -d fink/CVS ]; then
+    echo "Updating [EMAIL PROTECTED] from CVS..."
+    cd fink
+    cvs -z3 -q update -Al
+    cvs -z3 -q update -Ad [EMAIL PROTECTED]
+    cd ..
+  else
+    echo "Checking out [EMAIL PROTECTED] from CVS..."
+    cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/fink co -d fink dists
+  fi
 fi
 
 # flush the previous dump

Index: dumprelease
===================================================================
RCS file: /cvsroot/fink/scripts/pdb/dumprelease,v
retrieving revision 1.7.2.2
retrieving revision 1.7.2.3
diff -u -d -r1.7.2.2 -r1.7.2.3
--- dumprelease 5 Feb 2007 20:37:40 -0000       1.7.2.2
+++ dumprelease 11 Sep 2007 06:11:24 -0000      1.7.2.3
@@ -6,11 +6,16 @@
 architecture=$3
 tag=release_`echo $release | sed 's/\./_/g'`
 
-echo "Updating from CVS (Tag $tag)..."
+if [ -d fink ] && [ ! -d fink/CVS ]; then
+  echo "Removing fink/ (no CVS dir found)..."
+  rm -r fink
+fi
 if [ ! -d fink ]; then
+  echo "Checking out fink/ from CVS..."
   cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/fink co -d fink dists
 fi
 cd fink
+echo "Updating from CVS (Tag $tag)..."
 cvs -z3 -q update -r $tag
 cd ..
 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to