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/07/02 19:39:05 UTC
[whimsy] branch master updated: Docn
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 b8889bc Docn
b8889bc is described below
commit b8889bca7e4dbe2df723d0f8260a16110b76ad61
Author: Sebb <se...@apache.org>
AuthorDate: Thu Jul 2 20:38:57 2020 +0100
Docn
---
www/board/publish_minutes.cgi | 28 +++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/www/board/publish_minutes.cgi b/www/board/publish_minutes.cgi
index d5b1fa5..5a93d8b 100755
--- a/www/board/publish_minutes.cgi
+++ b/www/board/publish_minutes.cgi
@@ -1,5 +1,31 @@
#!/usr/bin/env ruby
+"""
+Publish minutes:
+- clean up site-board, minutes, foundation-board checkouts
+- read calendar and update text
+ - add year index
+ - add summary
+ - remove ?
+- commit minutes (public repo):
+ - create/add the yearly folder if necessary
+ - if the public minutes do not already exist:
+ - copy private minutes to the yearly folder
+ - svn add them
+ - commit the updated yearly folder
+ - check for leftover errors
+- commit updated calendar:
+ - if text has changed:
+ - svn diff
+ - svn commit
+ - check for leftover errors
+- clean up board directory (private repo)
+ - remove minutes if they exist
+ - archive agenda if it exists
+ - commit changes if any
+
+"""
+
$LOAD_PATH.unshift '/srv/whimsy/lib'
require 'wunderbar'
require 'date'
@@ -43,7 +69,7 @@ _html do
date = @summary[/\[(.*?)\]/,1]
year = date.split(' ').last
- # add year header
+ # add year header before the first one
unless calendar.include? '#'+year
calendar[/^()#.*Board meeting minutes #/,1] =
"# #{year} Board meeting minutes # {##{year}}\n\n"