New file.
authorhanda <handa>
Fri, 10 Dec 2010 06:11:59 +0000 (06:11 +0000)
committerhanda <handa>
Fri, 10 Dec 2010 06:11:59 +0000 (06:11 +0000)
utils/reform-man.sh [new file with mode: 0755]

diff --git a/utils/reform-man.sh b/utils/reform-man.sh
new file mode 100755 (executable)
index 0000000..dee5214
--- /dev/null
@@ -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