You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/10/12 14:03:44 UTC

[whimsy] branch master updated: Fix misplaced cttee entry

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new d93fad2  Fix misplaced cttee entry
d93fad2 is described below

commit d93fad2c400df7b6b39324ce7915751ed0c00872
Author: Sebb <se...@apache.org>
AuthorDate: Mon Oct 12 15:03:33 2020 +0100

    Fix misplaced cttee entry
    
    Add debug
---
 tools/collate_minutes.rb | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/tools/collate_minutes.rb b/tools/collate_minutes.rb
index e55164c..3483cbd 100755
--- a/tools/collate_minutes.rb
+++ b/tools/collate_minutes.rb
@@ -42,6 +42,8 @@ force = ARGV.delete '--force' # rerun regardless
 
 NOSTAMP = ARGV.delete '--nostamp' # don't add dynamic timestamp to pages (for debug compares)
 
+DUMP_AGENDA = ARGV.delete '--dump_agenda' # output agenda details
+
 STAMP = (NOSTAMP ? DateTime.new(1970) :  DateTime.now).strftime '%Y-%m-%d %H:%M'
 
 YYYYMMDD = ARGV.shift || '20*' # Allow override of minutes to process
@@ -269,8 +271,6 @@ seen={}
   end
   seen[date] = txt
   minutes = open(txt) {|file| file.read}
-  print "\r#{date}"
-  $stdout.flush
   pending = {}
 
   # parse Attachments (includes both Officer Reports and Committee Reports)
@@ -336,6 +336,8 @@ seen={}
       report.subtitle = title
       report.title = 'Alleged JBoss IP Infringement'
       report.attach = '@' + attach
+    elsif title =~ /Written Consent of the Directors/
+      report.attach = '@' + attach
     end
 
     pending[attach] = report
@@ -868,6 +870,25 @@ agenda.sort.each do |title, reports|
   end
 end
 
+if DUMP_AGENDA
+  agenda.each do |title, reports|
+    p [reports.length > 1 ? '>1' : '=1', reports.last.attach[0..1], reports.length, title]
+  end
+end
+
+# Classification scheme
+# Pfx = reports.last.attach[0]
+# Count = reports.length
+#
+# Pfx    Count     Section
+# '*'     >1       Executive Officer Reports
+# 0-9     >1       Additional Officer Reports
+# A-Z     >1       Committee Reports
+# '.'     any      Podling Reports
+# '@'     >1       Repeating Special Orders
+# '+'     >1       Other Agenda Items
+# !'.'    =1       Other Attachments, Special Orders, and Discussions
+
 # output index
 agenda = agenda.sort_by {|title, reports| title.downcase}
 page = layout do |x|