SPECS: adapter.awk - replace PreReq and sortbr in one run
glen
glen at pld-linux.org
Tue Dec 13 16:14:07 CET 2005
Author: glen Date: Tue Dec 13 15:14:07 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- replace PreReq and sortbr in one run
---- Files affected:
SPECS:
adapter.awk (1.239 -> 1.240)
---- Diffs:
================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.239 SPECS/adapter.awk:1.240
--- SPECS/adapter.awk:1.239 Tue Dec 13 16:02:47 2005
+++ SPECS/adapter.awk Tue Dec 13 16:14:02 2005
@@ -109,7 +109,12 @@
# so don't do that.
# - comments leading the BR/R can not be associated,
# so don't adapterize when the BR/R are mixed with comments
-ENVIRON["SKIP_SORTBR"] != 1 && preamble == 1 && /(Build)?Requires/, /(Build)?Requires/ {
+ENVIRON["SKIP_SORTBR"] != 1 && preamble == 1 && /(PreReq|(Build)?Requires)/, /(PreReq|(Build)?Requires)/ {
+ if ($1 ~ /PreReq:/) {
+ sub(/PreReq:/, "Requires:", $1);
+ }
+ format_preamble()
+
b_idx++;
l = substr($0, index($0, $2));
b_ktmp = b_makekey($1, l);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/adapter.awk?r1=1.239&r2=1.240&f=u
More information about the pld-cvs-commit
mailing list