Author: sparky                       Date: Fri Jan 28 13:39:43 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- try to fix first line if it is broken

---- Files affected:
packages:
   adapter.awk (1.483 -> 1.484) 

---- Diffs:

================================================================
Index: packages/adapter.awk
diff -u packages/adapter.awk:1.483 packages/adapter.awk:1.484
--- packages/adapter.awk:1.483  Tue Jan 18 08:17:21 2011
+++ packages/adapter.awk        Fri Jan 28 14:39:37 2011
@@ -71,9 +71,11 @@
 
 # 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
        }
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/adapter.awk?r1=1.483&r2=1.484&f=u

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

Reply via email to