summaryrefslogtreecommitdiff
path: root/scripts/historic/2xml
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/historic/2xml')
-rwxr-xr-xscripts/historic/2xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/historic/2xml b/scripts/historic/2xml
new file mode 100755
index 000000000..a68d24a88
--- /dev/null
+++ b/scripts/historic/2xml
@@ -0,0 +1,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 \ No newline at end of file