libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] libcvd/make log_to_changelog.awk


From: Edward Rosten
Subject: [libcvd-members] libcvd/make log_to_changelog.awk
Date: Wed, 03 Dec 2008 15:39:45 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Edward Rosten <edrosten>        08/12/03 15:39:45

Modified files:
        make           : log_to_changelog.awk 

Log message:
        Remove line count from commit line, since it's variable.
        
        Consistently treat dates as seconds * 10.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/make/log_to_changelog.awk?cvsroot=libcvd&r1=1.3&r2=1.4

Patches:
Index: log_to_changelog.awk
===================================================================
RCS file: /cvsroot/libcvd/libcvd/make/log_to_changelog.awk,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- log_to_changelog.awk        27 Nov 2008 22:15:09 -0000      1.3
+++ log_to_changelog.awk        3 Dec 2008 15:39:45 -0000       1.4
@@ -46,9 +46,17 @@
 
                #The commit line
                gline()
-               commit_line=$0
                author=substr($6, 1, length($6)-1)
                
+               #Remove the variable line count.
+               if($9 == "lines:")
+               {
+                       $10 = ""
+                       $11 = ""
+               }
+               $0=$0
+               commit_line=$0
+               
                #Store the date* 10 for extra precision
                date = $2" "$3
                gsub(/[^0-9]+/, " ", date)
@@ -126,7 +134,7 @@
                        for(j=i-1; j>0 && 
                                           
author==line_to_author[date_to_line[sorted_dates[j]]] &&
                                           
message==line_to_message[date_to_line[sorted_dates[j]]] &&
-                                          date - sorted_dates[j] < 20; j--)
+                                          date - sorted_dates[j] < 100; j--)
                        {
                                #Reset i, so that the fragment appears once 
only.
                                i=j
@@ -136,7 +144,7 @@
                                rev_list=rev_list " " 
line_to_revision[date_to_line[sorted_dates[j]]];
 
                                #Make a note of teh concatenations
-                               concatenation=concatenation ", " date - 
sorted_dates[j] "s"
+                               concatenation=concatenation ", " (date - 
sorted_dates[j])/10 "s"
                                num_concat++
                        }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]