From 1fefb3da42af990e43546d07d7b8f5626ff47439 Mon Sep 17 00:00:00 2001 From: ankry Date: Mon, 17 Feb 2003 20:52:46 +0000 Subject: [PATCH] - fix %changelog creation Changed files: adapter.awk -> 1.110 --- adapter.awk | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/adapter.awk b/adapter.awk index e2f4e65..258953c 100644 --- a/adapter.awk +++ b/adapter.awk @@ -13,7 +13,7 @@ BEGIN { preamble = 1 # Is it part of preamble? Default - yes - boc = 2 # Beggining of %changelog + boc = 4 # Beggining of %changelog bod = 0 # Beggining of %description tw = 70 # Descriptions width @@ -273,23 +273,32 @@ defattr == 1 { has_changelog = 1 # There should be some CVS keywords on the first line of %changelog. if (boc == 1) { - if (!/PLD Team/) { - print "* %{date} PLD Team " > changelog_file + if (!/\$Log$/) { + print "$" "Log:$" > changelog_file + } + boc = 0 + } + if (boc == 2) { + if (!/All persons listed below/) { printf "All persons listed below can be reached at " > changelog_file print "@pld.org.pl\n" > changelog_file - print "$" "Log:$" > changelog_file } boc = 0 } - + if (boc == 3) { + if (!/PLD Team/) { + print "* %{date} PLD Team " > changelog_file + } + boc = 2 + } # Define date macro. - if (boc == 2) { + if (boc == 4) { if (date == 0) { printf "%%define date\t%%(echo `LC_ALL=\"C\"" > changelog_file print " date +\"%a %b %d %Y\"`)" > changelog_file date = 1 } - boc = 1 + boc = 3 } sub(/[ \t]+$/, "") @@ -495,12 +504,14 @@ END { if (has_changelog == 0) print "%changelog" - if (boc > 0) { + if (boc > 2) print "* %{date} PLD Team " + if (boc > 1) { printf "All persons listed below can be reached at " print "@pld.org.pl\n" - print "$" "Log:$" } + if (boc > 0) + print "$" "Log:$" } function fixedsub(s1,s2,t, ind) { -- 2.44.0