SPECS: adapter.awk - also sort commented out BR - Applications/Dae...

glen glen at pld-linux.org
Tue Dec 13 14:58:34 CET 2005


Author: glen                         Date: Tue Dec 13 13:58:34 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- also sort commented out BR
- Applications/Daemons group doesn't exist
- replace commas in verify attrs with spaces

---- Files affected:
SPECS:
   adapter.awk (1.234 -> 1.235) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.234 SPECS/adapter.awk:1.235
--- SPECS/adapter.awk:1.234	Tue Dec 13 13:55:42 2005
+++ SPECS/adapter.awk	Tue Dec 13 14:58:29 2005
@@ -94,6 +94,8 @@
 	s = a "" b;
 	# kill bcond
     gsub(/[#%]+{[!?]+[_a-zA-Z0-9]+:/, "", s);
+	# kill commented out items
+    gsub(/[# \t]*/, "", s);
 	return s;
 }
 
@@ -560,6 +562,7 @@
 		sub(/^System Environment\/Libraries$/, "Libraries", Grupa)
 		sub(/^System Environment\/Daemons$/, "Daemons", Grupa)
 		sub(/^Applications\/Internet$/, "Applications/Networking", Grupa)
+		sub(/^Applications\/Daemons$/, "Daemons", Grupa)
 		sub(/^System\/Servers$/, "Daemons", Grupa)
 		sub(/^X11\/Xserver$/, "X11/Servers", Grupa)
 		sub(/^X11\/XFree86$/, "X11", Grupa)
@@ -1068,6 +1071,9 @@
 	# sort %verify attrs
 	if (match($0, /%verify\(not([^)]+)\)/)) {
 		t = substr($0, RSTART, RLENGTH)
+		# kill commas: %verify(not,md5,size,mtime)
+		gsub(/,/, " ", t);
+
 		gsub(/^%verify\(not |\)$/, "", t)
 		n = split(t, a, / /)
 		isort(a, n)
================================================================

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




More information about the pld-cvs-commit mailing list