Author: glen                         Date: Wed Sep  7 18:20:33 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separate commaseparated (build)requires lists

---- Files affected:
SPECS:
   adapter.awk (1.180 -> 1.181) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.180 SPECS/adapter.awk:1.181
--- SPECS/adapter.awk:1.180     Wed Sep  7 19:17:01 2005
+++ SPECS/adapter.awk   Wed Sep  7 20:20:28 2005
@@ -488,6 +488,16 @@
                $(NF + 1) = " # FIXME add Requires(scriptlet) -adapter.awk"
        }
 
+       # split (build)requires on commas
+       if (field ~ /requires:/ && $2 ~ /,/) {
+               l = substr($0, index($0, $2));
+               n = split(l, p, / *, */);
+               for (i in p) {
+                       printf("%s\t%s\n", $1, p[i]);
+               }
+               next;
+       }
+
        if (field ~ /packager:|distribution:|docdir:|prefix:/)
                next
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/adapter.awk?r1=1.180&r2=1.181&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to