From 984e2295094f07e503e2f7e0e6ec3c674c9189fc Mon Sep 17 00:00:00 2001 From: sparky Date: Fri, 28 Jan 2011 13:39:37 +0000 Subject: [PATCH] - 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 } -- 2.44.0