Debian Codegraph @

debian/adhoc/wrappers/cm2latex

raw
1 #!/bin/sh
2 ## ad hoc wrapper to feed help2man(1)
3 set -e
4 CM2A=${0##*/}
5 WRAPPEE=debian/tmp/usr/bin/${CM2A}
6 [ -x $WRAPPEE ] || exit 1
7 $WRAPPEE $@ | \
8 sed \
9 -e '/^Usage$/d' -e 's|^ cm2|Usage\: cm2|' \
10 -e '/^=/d' \
11 -e '/^---/d' \
12 -e 's|^--| --|g' \
13 -e 's|^Options|Options\:|' \
14 -e 's|^\([A-Z][-a-zA-Z\ ]*Options\)$|\1:|g' \
15 -e 's|^"\([A-Z][-a-zA-Z\ ]*\)" \([A-Z][-a-zA-Z\ ]*Options\)$|\1 \2:|g'
16
17 exit 0
18 ## eow