commit 05a63728a54148853f0766f2b89a8d97dad0aff0
parent 97e913666a857013270be85be594493e42f47f40
Author: Juan F. Meleiro <juan@juanmeleiro.mat.br>
Date: Mon, 15 May 2023 12:23:44 -0300
monthly: Make into script
Diffstat:
6 files changed, 45 insertions(+), 55 deletions(-)
diff --git a/monthly.fish b/monthly.fish
@@ -7,7 +7,7 @@ echo 'Date: '(date -R)
echo 'From: juan <juan@juanmeleiro.mat.br>'
echo 'To: <agora-official@agoranomic.org>'
echo 'Subject: [Registrar] Monthly report: Arrivals and Departures'
-m4 monthly.m4
+m4 monthly/monthly.m4
end > $tmp
neomutt -E -H $tmp
rm $tmp
diff --git a/monthly/editorial.m4 b/monthly/editorial.m4
@@ -0,0 +1,3 @@
+For any corrections,
+For any suggestions or complaints of form,
+Please contact the Registrar.
diff --git a/monthly/history.m4 b/monthly/history.m4
@@ -0,0 +1,12 @@
+Registration history of persons who have registered and deregistered
+at least once (imperfect, corrections welcomed)
+
+(a)bandoned (l)awless
+(v)oluntary (d)eported
+(w)rit of FAGE deregistered emself by mista(k)e
+(p)roposal d(e)stroyed
+(r)atification (u)known
+e(x)iled (s)till registered
+(b)anned
+
+esyscmd(`python3 monthly/format.py')
diff --git a/monthly/monthly.m4 b/monthly/monthly.m4
@@ -1,54 +1,15 @@
-===============================================================================
-Registrar: juan Arrivals and Departures 2023-04-03
-===============================================================================
-
--------------------------------------------------------------------------------
-NEWS
-
-* We have a new player! Yachay Wayllukuq registered on 2023-03-16.
-
--------------------------------------------------------------------------------
-WRITS OF FAGE
-
-Player Date
------- ----
-Kelly 1995-09-17
-Andre 1999-02-13
-BobTHJ 2008-01-16
-P1 2008-11-05
-P2 2008-11-05
-P3 to P100 [1] 2008-11-06
-Wooble 2011-09-01
-G. 2017-06-29
-Telnaior 2019-01-29
-Warrigal 2020-04-23
-Aspen 2022-05-08
-nix 2022-08-29
-
-[1] P3 to P100 inclusive each deregistered in writs of FAGE on this
- date.
-
--------------------------------------------------------------------------------
-EDITORIAL
-
-For any corrections,
-For any suggestions or complaints of form,
-Please contact the Registrar.
-
--------------------------------------------------------------------------------
-HISTORY
-
-Registration history of persons who have registered and deregistered
-at least once (imperfect, corrections welcomed)
-
-(a)bandoned (l)awless
-(v)oluntary (d)eported
-(w)rit of FAGE deregistered emself by mista(k)e
-(p)roposal d(e)stroyed
-(r)atification (u)known
-e(x)iled (s)till registered
-(b)anned
-
-esyscmd(`python3 monthly/format.py')
-
-===============================================================================
+define(dhl, `===============================================================================')dnl
+define(shl, `-------------------------------------------------------------------------------
+')dnl
+define(module, shl`$1
+
+include($2)')dnl
+dhl
+`Registrar: juan Arrivals and Departures 'esyscmd(date +%Y-%m-%d | tr -d '\n')
+dhl
+
+module(NEWS, monthly/news.m4)
+module(EDITORIAL, monthly/editorial.m4)
+module(WRITS OF FAGE, monthly/writs.m4)
+module(HISTORY, monthly/history.m4)
+dhl
diff --git a/monthly/news.m4 b/monthly/news.m4
@@ -0,0 +1,11 @@
+* We've had a bunch of players become inactive:
+ - Aced7
+ - Gaelan
+ - Marb
+ - Shy Own
+ - tb148
+ - R. Lee
+
+ Thanks snail for your service.
+
+* We've had a Cantus Cygneus hit-and-run by misterious jimmy
diff --git a/monthly/writs.m4 b/monthly/writs.m4
@@ -0,0 +1,3 @@
+define(HEADING, PLAYER $1 DATE
+------ $1 ----------)dnl
+esyscmd(`grep "^w" monthly/history.tsv | cut -f 2,5 | column -t -N "HEADING(\`,')"')