File: texi2h2m.sh

package info (click to toggle)
dateutils 0.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,924 kB
  • sloc: ansic: 22,097; makefile: 1,666; yacc: 198; sh: 168; lex: 108
file content (11 lines) | stat: -rwxr-xr-x 126 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

sed '
/^@section/ {
	s/@section /\[/
	s/$/\]/
}
/^@verbatim/d
/^@end verbatim/d
s/@samp{\([^}]*\)}/"\1"/g
' "${1}"