summary refs log tree commit diff
path: root/port (follow)
Commit message (Expand)AuthorAge
* Add musl's COPYRIGHT to wcwidthJune McEnroe2020-05-25
* Replace wcwidth implementation with that of muslJune McEnroe2020-04-25
* Add Markus Kuhn's wcwidth implementationJune McEnroe2020-04-21
* Rewrite port makefiles consistentlyJune McEnroe2019-07-27
* Fix rot13 port bin pathJune McEnroe2018-12-16
* Fix ports for LinuxJune McEnroe2018-11-27
* Un-hardcode fortune(6) path in cgramJune McEnroe2018-11-26
* Add cgram "port" from NetBSDJune McEnroe2018-11-26
* Add "ports" of some FreeBSD utilities for macOSJune McEnroe2018-11-25
ss="St"> <?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 ' "$@" } set -- *.txt shift $(( $# - 20 )) for txt; do entry="${txt%.txt}.7" date=$(grep '^[.]Dd' "$entry" | cut -c 5-) title=$(grep -m 1 '^[.]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>'