Update of /cvsroot/fink/scripts/pdb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25251

Modified Files:
        refresh 
Log Message:
Allow user to specify dist(s) on command-line


Index: refresh
===================================================================
RCS file: /cvsroot/fink/scripts/pdb/refresh,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- refresh     20 May 2005 17:23:36 -0000      1.11
+++ refresh     7 Jun 2005 10:02:45 -0000       1.12
@@ -1,10 +1,18 @@
 #!/bin/sh
 set -e
 
+# allow user to pass dist(s) on command-line
+if [ $# -gt 0 ]; then
+  dists=($@)
+else
+  dists=(10.2-gcc3.3 10.3 10.4-transitional)
+fi
+
 echo "Updating from CVS..."
 if [ -d fink ]; then
   cd fink
-  cvs -z3 -q update -Ad
+  cvs -z3 -q update -Al
+  cvs -z3 -q update -Ad [EMAIL PROTECTED]
   cd ..
 else
   cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/fink co -d fink dists
@@ -14,7 +22,7 @@
 echo -n "" > current.sql
 
 # Dump each supported source tree of the dists
-for dist in 10.2-gcc3.3 10.3 10.4-transitional; do
+for dist in [EMAIL PROTECTED]; do
     rm -f fink/dists var/db/fink.db
     ln -s $dist fink/dists
     echo ""



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to