[packages/rpm-build-tools] - remove cvs leftover: $id in at line 1

glen glen at pld-linux.org
Wed Jul 11 17:13:53 CEST 2012


commit a8d10697344df3817f66b3dadf98da9419fd9f5d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jul 11 18:13:49 2012 +0300

    - remove cvs leftover: $id in at line 1

 adapter.awk | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index fad5240..381c942 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -33,9 +33,8 @@ BEGIN {
 	RPM_SECTIONS = "package|build|changelog|clean|description|install|post|posttrans|postun|pre|prep|pretrans|preun|triggerin|triggerpostun|triggerun|verifyscript|check"
 	SECTIONS = "^%(" RPM_SECTIONS ")"
 
-	RCSID = "$Id$"
-	rev = RCSID # TODO: parse from RCSID
-	VERSION = "0.35/" rev
+	rev = "1.514"
+	VERSION = "0.36/" rev
 
 	PREAMBLE_TAGS = "(R|BR|Summary|Name|Version|Release|Epoch|License|Group|URL|BuildArch|BuildRoot|Obsoletes|Conflicts|Provides|ExclusiveArch|ExcludeArch|Pre[Rr]eq|(Build)?Requires|Suggests|Auto(Req|Prov))"
 
@@ -69,18 +68,6 @@ BEGIN {
 	changelog_file = mktemp("adapter.changelogXXXXXX")
 }
 
-# There should be a comment with CVS keywords on the first line of file.
-FNR == 1 {
-	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
-	} else {
-		print $0				# Yes
-		next		# It is enough for first line
-	}
-}
-
 # If the latest line matched /%files/
 defattr == 1 {
 	if (ENVIRON["SKIP_DEFATTR"] != 1) {


More information about the pld-cvs-commit mailing list