summaryrefslogtreecommitdiff
path: root/scripts/historic/2xml
blob: a68d24a88a6b372f302b3955ddc991b99e2079f7 (plain)
1
2
3
4
5
6
7
#!/bin/sh

# feed it sgml and it coughs up xml, pretty rough though.

sgmlnorm -mn $1 | sed -f 2xml2 > tmp.xml

sed '/<\/para>/{:a;N;/<para>/!ba;s/<\/para>\n*<para>/<\/para><para>/;}' tmp.xml | less