]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- changelog should work better now - don't mess with old-style entries
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 16 Apr 2003 07:48:15 +0000 (07:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.115

adapter.awk

index 2d4d6431f853179b00aca0a7c57fe9948f3c9c99..bf7d62c8eb3374468207b3d45660064b26ed5ffb 100644 (file)
@@ -271,25 +271,29 @@ defattr == 1 {
 /^%changelog/, (/^%[a-z]+$/ && !/^%changelog/) {
        preamble = 0
        has_changelog = 1
+       skip = 0
        # There should be some CVS keywords on the first line of %changelog.
-       if (boc == 1) {
-               if (!/^$/) {
-                       if (!/\$.*Log:.*\$/)
-                               print "$" "Log:$" > changelog_file
-                       boc = 0
-               }
+       if (boc == 3) {
+               if (!/PLD Team/)
+                       print "* %{date} PLD Team <feedback@pld.org.pl>" > changelog_file
+               else
+                       skip = 1
+               boc = 2
        }
-       if (boc == 2) {
+       if (boc == 2 && !skip) {
                if (!/All persons listed below/) {
                        printf "All persons listed below can be reached at " > changelog_file
                        print "<cvs_login>@pld.org.pl\n" > changelog_file
-               }
+               } else
+                       skip = 1
                boc = 1
        }
-       if (boc == 3) {
-               if (!/PLD Team/)
-                       print "* %{date} PLD Team <feedback@pld.org.pl>" > changelog_file
-               boc = 2
+       if (boc == 1 && !skip) {
+               if (!/^$/) {
+                       if (!/\$.*Log:.*\$/)
+                               print "$" "Log:$" > changelog_file
+                       boc = 0
+               }
        }
        # Define date macro.
        if (boc == 4) {
This page took 0.036314 seconds and 4 git commands to generate.