SPECS: adapter.awk - case insensitive preable tags
glen
glen at pld-linux.org
Fri Aug 31 22:26:20 CEST 2007
Author: glen Date: Fri Aug 31 20:26:20 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- case insensitive preable tags
---- Files affected:
SPECS:
adapter.awk (1.360 -> 1.361)
---- Diffs:
================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.360 SPECS/adapter.awk:1.361
--- SPECS/adapter.awk:1.360 Wed Aug 29 01:48:10 2007
+++ SPECS/adapter.awk Fri Aug 31 22:26:15 2007
@@ -129,25 +129,25 @@
gsub(/^#[ \t]*/, "", s);
# force order
- gsub(/^Summary\(/, "11Summary(", s);
- gsub(/^Summary/, "10Summary", s);
- gsub(/^Name/, "2Name", s);
- gsub(/^Version/, "3Version", s);
- gsub(/^Release/, "4Release", s);
- gsub(/^Epoch/, "5Epoch", s);
- gsub(/^License/, "5License", s);
- gsub(/^Group/, "6Group", s);
- gsub(/^URL/, "7URL", s);
+ gsub(/^Summary\(/i, "11Summary(", s);
+ gsub(/^Summary/i, "10Summary", s);
+ gsub(/^Name/i, "2Name", s);
+ gsub(/^Version/i, "3Version", s);
+ gsub(/^Release/i, "4Release", s);
+ gsub(/^Epoch/i, "5Epoch", s);
+ gsub(/^License/i, "5License", s);
+ gsub(/^Group/i, "6Group", s);
+ gsub(/^URL/i, "7URL", s);
- gsub(/^BuildRequires/, "B1BuildRequires", s);
- gsub(/^BuildConflicts/, "B2BuildConflicts", s);
- gsub(/^Provides/, "X1Provides", s);
- gsub(/^Obsoletes/, "X2Obsoletes", s);
- gsub(/^Conflicts/, "X3Conflicts", s);
- gsub(/^BuildArch/, "X4BuildArch", s);
- gsub(/^ExclusiveArch/, "X6ExclusiveArch", s);
- gsub(/^ExcludeArch/, "X7ExcludeArch", s);
- gsub(/^BuildRoot/, "X9BuildRoot", s);
+ gsub(/^BuildRequires/i, "B1BuildRequires", s);
+ gsub(/^BuildConflicts/i, "B2BuildConflicts", s);
+ gsub(/^Provides/i, "X1Provides", s);
+ gsub(/^Obsoletes/i, "X2Obsoletes", s);
+ gsub(/^Conflicts/i, "X3Conflicts", s);
+ gsub(/^BuildArch/i, "X4BuildArch", s);
+ gsub(/^ExclusiveArch/i, "X6ExclusiveArch", s);
+ gsub(/^ExcludeArch/i, "X7ExcludeArch", s);
+ gsub(/^BuildRoot/i, "X9BuildRoot", s);
# printf("%s -> %s\n", a""b, s);
return s;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/adapter.awk?r1=1.360&r2=1.361&f=u
More information about the pld-cvs-commit
mailing list