]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- try to fix first line if it is broken
authorsparky <sparky@pld-linux.org>
Fri, 28 Jan 2011 13:39:37 +0000 (13:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.484

adapter.awk

index 9cf95578ff20aa6b37be4ee253c693a480357c2b..10f431ac66097ca2d345427075a9b9a79956b963 100644 (file)
@@ -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
        }
This page took 0.148107 seconds and 4 git commands to generate.