File: 2xml

package info (click to toggle)
installation-guide 20110122~squeeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 29,456 kB
  • ctags: 62
  • sloc: xml: 114,179; sh: 1,102; perl: 421; awk: 200; python: 101; makefile: 71
file content (7 lines) | stat: -rwxr-xr-x 198 bytes parent folder | download | duplicates (13)
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