ref: cb9235713472745f68d43c1269a076959fed23a9
parent: c463f5dfecc655674f7907e428efd7d3535e3253
author: sirjofri <sirjofri@sirjofri.de>
date: Tue Dec 15 05:27:13 EST 2020
finally fixes changeblog plain text (hopefully)
--- a/mkfile
+++ b/mkfile
@@ -69,7 +69,7 @@
<name>sirjofri</name>
<email>sirjofri@sirjofri.de</email>
</author>
- <link rel="self" href="'^$DOMAIN^'changeblog.xml"/>
+ <link rel="self" href="'^$DOMAIN^'changeblog.plain.xml"/>
<rights>© Copyright 2020 sirjofri</rights>
<id>'^$"DOMAIN^'</id>
<title>changeblog</title>
@@ -77,7 +77,7 @@
for(i in $prereq){
ifs=''
title=`{deroff $i | sed '1,2d;3q' | tr -d $nl}
- content=`{nroff -ms $i | cat}
+ content=`{troff -a -ms $i | sed 's/&/\&/g;s/</\</g;s/>/\>/g' | sed 's/$/ /g'}
link=$DOMAIN^`{echo -n $i | sed 's:\.ms$:/:' | tr -d $nl}
updated=`{date -t `{basename $i | sed 's/\.ms$//'} | tr -d $nl}
ifs=' '^$nl
@@ -86,7 +86,7 @@
<id>'^$"link^'</id>
<link href="'^$"link^'"/>
<updated>'^$"updated^'</updated>
- <content type="html"><pre>'^$"content^'</pre></content>
+ <content type="text">'^$"content^'</content>
</entry>
'
}