File: 2xml

package info (click to toggle)
installation-guide 20070319
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 29,356 kB
  • ctags: 53
  • sloc: xml: 184,383; sh: 1,023; perl: 403; awk: 200; makefile: 65
file content (7 lines) | stat: -rwxr-xr-x 198 bytes parent folder | download | duplicates (12)
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