commit 97e215211a41db77254a0fb88d988b43e4fceb39
Author: Jakub Bogusz <[email protected]>
Date:   Wed Apr 16 07:48:15 2003 +0000

    - changelog should work better now - don't mess with old-style entries
    
    Changed files:
        adapter.awk -> 1.115

 adapter.awk | 28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 2d4d643..bf7d62c 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -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 <[email protected]>" > 
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 <[email protected]>" > 
changelog_file
-               boc = 2
+       if (boc == 1 && !skip) {
+               if (!/^$/) {
+                       if (!/\$.*Log:.*\$/)
+                               print "$" "Log:$" > changelog_file
+                       boc = 0
+               }
        }
        # Define date macro.
        if (boc == 4) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to