packages: get-all-specs.sh - add two alternative ways to consideration for ...

shadzik shadzik at pld-linux.org
Wed May 27 20:38:15 CEST 2009


Author: shadzik                      Date: Wed May 27 18:38:15 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add two alternative ways to consideration for the author

---- Files affected:
packages:
   get-all-specs.sh (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/get-all-specs.sh
diff -u packages/get-all-specs.sh:1.4 packages/get-all-specs.sh:1.5
--- packages/get-all-specs.sh:1.4	Wed May 27 19:58:27 2009
+++ packages/get-all-specs.sh	Wed May 27 20:38:10 2009
@@ -10,6 +10,18 @@
 export CVSROOT=:pserver:"${CVSUSER}"@cvs.pld-linux.org:/cvsroot
 cvs login
 cd .. 
-wget http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ -O - \
-	| perl -p -e 'if(m#a href="\./(.*?)/"#){$_=$1;s/%(..)/chr hex $1/eg;$_="packages/$_/$_.spec\0"}else{$_=undef}' \
-	| xargs -0 cvs -z3 get
+#wget http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ -O - \
+#	| perl -p -e 'if(m#a href="\./(.*?)/"#){$_=$1;s/%(..)/chr hex $1/eg;$_="packages/$_/$_.spec\0"}else{$_=undef}' \
+#	| xargs -0 cvs -z3 get
+
+# alternative
+#wget http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ -O - \
+#	|sed -e 's@<@@g;s@>@@g;s@"@ @g;s@\(name.*\)@\1@' \
+#	|grep name |cut -d ' ' -f9
+#	| xargs -0 cvs -z3 get
+
+# the fastest way
+#wget http://cvs.pld-linux.org/cgi-bin/cvsweb/packages/ -O - \
+#	|sed -e 's@<@@g;s@>@@g;s@/@ @g;s@\(name.*\)@\1@' \
+#	|cut -d ' ' -f6 \
+#	|xargs -0 cvs -z3 get packages
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/get-all-specs.sh?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list