From: handa Date: Fri, 10 Dec 2010 06:11:59 +0000 (+0000) Subject: New file. X-Git-Tag: REL-1-6-2~20 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=91b7584fe1dcb2731325bb062de1f6a74ed2cc3a;p=m17n%2Fm17n-docs.git New file. --- diff --git a/utils/reform-man.sh b/utils/reform-man.sh new file mode 100755 index 0000000..dee5214 --- /dev/null +++ b/utils/reform-man.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# Reform all man pages to suppress "hyphen-used-as-minus-sign" +# warnings of lintian by converting all unescaped "-" to "\-". + +while [ $# -ge 1 ] ; do + sed -e '/^[^.]/s/--/\\-\\-/g'\ + -e '/^[^.]/ s/\([^\\]\)-/\1\\-/g'\ + -e '/^-/ s/^-/\\-/g' < $1 > temp.man + mv temp.man $1 + shift +done