projects
/
m17n
/
m17n-docs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
717ab54
)
New file.
author
handa
<handa>
Fri, 10 Dec 2010 06:11:59 +0000
(06:11 +0000)
committer
handa
<handa>
Fri, 10 Dec 2010 06:11:59 +0000
(06:11 +0000)
utils/reform-man.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/utils/reform-man.sh
b/utils/reform-man.sh
new file mode 100755
(executable)
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