packages: adapter.awk - make "first line" regular expression compatible wit...
sparky
sparky at pld-linux.org
Fri Jan 28 15:11:23 CET 2011
Author: sparky Date: Fri Jan 28 14:11:23 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- make "first line" regular expression compatible with mawk
---- Files affected:
packages:
adapter.awk (1.484 -> 1.485)
---- Diffs:
================================================================
Index: packages/adapter.awk
diff -u packages/adapter.awk:1.484 packages/adapter.awk:1.485
--- packages/adapter.awk:1.484 Fri Jan 28 14:39:37 2011
+++ packages/adapter.awk Fri Jan 28 15:11:17 2011
@@ -71,7 +71,7 @@
# There should be a comment with CVS keywords on the first line of file.
FNR == 1 {
- if (!/^# \$()Revision: .* \$, \$()Date: .* \$$/) { # If this line is already OK?
+ if (!/^# \$[R]evision: .* \$, \$[D]ate: .* \$$/) { # If this line is already OK?
print "# $" "Revision:$, " "$" "Date:$" # No
if ( /^#.*([rR]evision|[dD]ate)/ ) # There was something similar, but incorrect
next
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/adapter.awk?r1=1.484&r2=1.485&f=u
More information about the pld-cvs-commit
mailing list