19 lines
803 B
Plaintext
19 lines
803 B
Plaintext
divert(-1)dnl
|
|
changequote(`<!', `!>')
|
|
|
|
# Constants
|
|
define(<!zxINBOXPATH!>, <!/Users/cb/Library/Thunderbird/Profiles/o0gmn24o.default-release/ImapMail/imap.tilde.team/INBOX!>)
|
|
define(<!zxSTARTDATE!>, <!20220713!>)
|
|
define(<!zxWPM!>, <!234!>)
|
|
define(<!zxSTRIP!>, <! tr '\n' ' ' | sed -e 's/ //g'!>)
|
|
|
|
# System Calls
|
|
define(<!zxNOMESSAGES!>, <!esyscmd(grep '\[tildepals\] BASEMENT QUEST' zxINBOXPATH | wc -l | zxSTRIP )!>)
|
|
define(<!zxWORDS!>, <!esyscmd(pandoc -t plain www/index.html | wc -w | zxSTRIP)!>)
|
|
define(<!zxDAYS!>, <!esyscmd(echo "(`gdate +%s` - `gdate +%s -d zxSTARTDATE`) / 86400" | bc | tr '\n' ' ')!>)
|
|
define(<!zxMINUTES!>, <!esyscmd(echo "zxWORDS / zxWPM" | bc | zxSTRIP)!>)
|
|
define(<!zxPOSTRATE!>, <!esyscmd(echo "scale=2; zxNOMESSAGES / zxDAYS" | bc | zxSTRIP)!>)
|
|
|
|
changequote()
|
|
divert(0)dnl
|