commit 984e2295094f07e503e2f7e0e6ec3c674c9189fc
Author: sparky <[email protected]>
Date:   Fri Jan 28 13:39:37 2011 +0000

    - try to fix first line if it is broken
    
    Changed files:
        adapter.awk -> 1.484

 adapter.awk | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 9cf9557..10f431a 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -71,9 +71,11 @@ BEGIN {
 
 # There should be a comment with CVS keywords on the first line of file.
 FNR == 1 {
-       if (!/# \$Revision:/)   # If this line is already OK?
+       if (!/^# \$()Revision: .* \$, \$()Date: .* \$$/) {      # If this line 
is already OK?
                print "# $" "Revision:$, " "$" "Date:$" # No
-       else {
+               if ( /^#.*([rR]evision|[dD]ate)/ ) # There was something 
similar, but incorrect
+                        next
+       } else {
                print $0                                # Yes
                next            # It is enough for first line
        }
================================================================

---- gitweb:

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to