SPECS: pldnotify.awk - googlecode.com url support

arekm arekm at pld-linux.org
Sun Aug 10 12:54:25 CEST 2008


Author: arekm                        Date: Sun Aug 10 10:54:25 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- googlecode.com url support

---- Files affected:
SPECS:
   pldnotify.awk (1.56 -> 1.57) 

---- Diffs:

================================================================
Index: SPECS/pldnotify.awk
diff -u SPECS/pldnotify.awk:1.56 SPECS/pldnotify.awk:1.57
--- SPECS/pldnotify.awk:1.56	Mon Dec  3 20:25:25 2007
+++ SPECS/pldnotify.awk	Sun Aug 10 12:54:20 2008
@@ -162,6 +162,13 @@
 		if (DEBUG) print "sf url, mungled url to: " url
 	}
 
+	if (url ~ /^http:\/\/(.*)\.googlecode\.com\//) {
+		gsub("^http://", "", url)
+		gsub("\..*", "", url)
+		url = "http://code.google.com/p/" url "/"
+		if (DEBUG) print "googlecode url, mungled url to: " url
+	}
+
 	if (DEBUG) print "Retrieving: " url
 	errno=system("wget -O - \"" url "\" -t 3 -T 300 --passive-ftp > " tmpfile " 2>/dev/null" )
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/pldnotify.awk?r1=1.56&r2=1.57&f=u



More information about the pld-cvs-commit mailing list