summary refs log tree commit diff
Commit message (Expand)AuthorAge
* Use one line for each CFLAGS addition 1.2June McEnroe2020-03-03
* Clean up configure script a bitJune McEnroe2020-03-02
* Replace .mk files with configure scriptJune McEnroe2020-03-01
* Advertise STS policyJune McEnroe2020-02-27
* Document the causal.agency/consumer vendor capabilityJune McEnroe2020-02-27
* Set consumer pos with CAP REQ causal.agency/consumer=nJune McEnroe2020-02-27
* Rename causal.agency/consumer tag causal.agency/posJune McEnroe2020-02-27
* Add 1 to consumer ID tagsJune McEnroe2020-02-27
* Add causal.agency/consumer capabilityJune McEnroe2020-02-27
* Re-sort STANDARDS sectionJune McEnroe2020-02-27
* Send CAP LS 302 to the serverJune McEnroe2020-02-27
* Properly treat CAP LS version as a numberJune McEnroe2020-02-27
* Support CAP LS 302 from clientsJune McEnroe2020-02-27
* Support cap-notifyJune McEnroe2020-02-27
* Support setnameJune McEnroe2020-02-26
* Support labeled-responseJune McEnroe2020-02-26
* Support batchJune McEnroe2020-02-26
* Support account-tagJune McEnroe2020-02-26
* Clean up intercept tag skipJune McEnroe2020-02-26
* Also skip the origin in wordcmpJune McEnroe2020-02-26
* Use %n for tags when formatting intercepted PRIVMSG/NOTICEJune McEnroe2020-02-26
* Tweak buffer sizesJune McEnroe2020-02-26
* Add time tag to lines missing itJune McEnroe2020-02-25
* Support message-tagsJune McEnroe2020-02-25
* Respond to tagged PINGs correctlyJune McEnroe2020-02-25
* Request server-time from the server and filter tags for clientsJune McEnroe2020-02-25
* Bump buffer sizes to allow for tagsJune McEnroe2020-02-25
* Remove bad assertJune McEnroe2020-02-18
* Implement source address selectionmultiplexd2020-02-18
* Use Xr for the first "pounce" in README 1.1June McEnroe2020-01-17
* Add litterbox to READMEJune McEnroe2020-01-17
* Rename SASL EXTERNAL section to CertFPJune McEnroe2020-01-17
* Document process of generating client certificatesJune McEnroe2020-01-17
* Set certificate expiry to 10 yearsJune McEnroe2020-01-16
* Allow signing by CA in -gJune McEnroe2020-01-12
* Clean up documentation for -AJune McEnroe2020-01-12
* Rename all local-related options to local-June McEnroe2020-01-12
* Use the CAP_PREAD rightJune McEnroe2020-01-12
* Add option to set local client CAJune McEnroe2020-01-12
* Add a vendor capability for passive clientsJune McEnroe2020-01-10
* Rename -A and -Q to -y and -qJune McEnroe2020-01-07
* Intercept client QUIT with no parameter 1.0p3June McEnroe2019-12-28
* Update source URLJune McEnroe2019-12-24
* Exit on zero-length server readJune McEnroe2019-12-22
* Revert "Exit when server gets POLLHUP"June McEnroe2019-12-22
* Exit when server gets POLLHUPJune McEnroe2019-12-20
* Add CONTRIBUTING section to READMEJune McEnroe2019-12-17
* Don't send self-PMs to the server 1.0p2June McEnroe2019-12-08
* Reference openssl(1) by absolute pathedef2019-11-27
* Simplify Linux.mkJune McEnroe2019-11-27
e <june@causal.agency> 2018-09-18 00:14:04 -0400 committer June McEnroe <june@causal.agency> 2018-09-18 00:14:04 -0400 Add atom feed generator' href='/src/commit/feed.sh?id=0b101f5b9d98f972ab9f72e983534412a53dc102'>0b101f5b ^
bc498247 ^
0b101f5b ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
         
       
 

                                          
                            
          



                                                                           
                              

                                                   
                                     
   
 







                             

                             
                                                  

                                                              
                                                                            

                                                      
                  


                                             

                                             
                                                   
                                             








                                                          

                        
    
 
              
#!/bin/sh
set -eu

readonly Root='https://text.causal.agency'

updated=$(date -u '+%FT%TZ')
cat <<-EOF
	<?xml version="1.0" encoding="utf-8"?>
	<feed xmlns="http://www.w3.org/2005/Atom">
	<title>Causal Agency</title>
	<author><name>June</name><email>june@causal.agency</email></author>
	<link href="${Root}"/>
	<link rel="self" href="${Root}/feed.atom"/>
	<id>${Root}/</id>
	<updated>${updated}</updated>
EOF

encode() {
	sed '
		s/&/\&amp;/g
		s/</\&lt;/g
		s/"/\&quot;/g
	' "$@"
}

for txt in *.txt; do
	entry="${txt%.txt}.7"
	date=$(grep '^[.]Dd' "$entry" | cut -c 5-)
	title=$(grep '^[.]Nm' "$entry" | cut -c 5- | encode)
	summary=$(grep '^[.]Nd' "$entry" | cut -c 5- | encode)
	published=$(date -ju -f '%B %d, %Y %T' "${date} 00:00:00" '+%FT%TZ')
	mtime=$(stat -f '%m' "$entry")
	updated=$(date -ju -f '%s' "$mtime" '+%FT%TZ')
	cat <<-EOF
		<entry>
		<title>${title}</title>
		<summary>${summary}</summary>
		<link href="${Root}/${txt}"/>
		<id>${Root}/${txt}</id>
		<published>${published}</published>
		<updated>${updated}</updated>
		<content type="xhtml">
		<div xmlns="http://www.w3.org/1999/xhtml">
	EOF
	printf '<pre>'
	encode "$txt"
	cat <<-EOF
		</pre>
		</div>
		</content>
		</entry>
	EOF
done

echo '</feed>'