[packages/adapter: 516/631] - make "first line" regular expression compatible with mawk

glen glen at pld-linux.org
Mon Sep 12 20:17:41 CEST 2016


commit c8f621c04269d7d99a6e672f8b3150353290a7c4
Author: sparky <sparky at pld-linux.org>
Date:   Fri Jan 28 14:11:17 2011 +0000

    - make "first line" regular expression compatible with mawk
    
    Changed files:
        adapter.awk -> 1.485

 adapter.awk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 10f431a..56e9faf 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -71,7 +71,7 @@ BEGIN {
 
 # 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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list