From 91b7584fe1dcb2731325bb062de1f6a74ed2cc3a Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 10 Dec 2010 06:11:59 +0000 Subject: [PATCH] New file. --- utils/reform-man.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 utils/reform-man.sh 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 -- 1.7.10.4