summaryrefslogtreecommitdiff
path: root/autoopts/tpl/man2texi.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autoopts/tpl/man2texi.sh')
-rwxr-xr-xautoopts/tpl/man2texi.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/autoopts/tpl/man2texi.sh b/autoopts/tpl/man2texi.sh
new file mode 100755
index 0000000..6578a51
--- /dev/null
+++ b/autoopts/tpl/man2texi.sh
@@ -0,0 +1,29 @@
+#! /bin/sh
+
+## man2texi.sh -- script to convert man page isms to texi-isms
+##
+## Time-stamp: "2012-02-12 09:25:29 bkorb"
+##
+## This file is part of AutoOpts, a companion to AutoGen.
+## AutoOpts is free software.
+## AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+##
+## AutoOpts is available under any one of two licenses. The license
+## in use must be one of these two and the choice is under the control
+## of the user of the license.
+##
+## The GNU Lesser General Public License, version 3 or later
+## See the files "COPYING.lgplv3" and "COPYING.gplv3"
+##
+## The Modified Berkeley Software Distribution License
+## See the file "COPYING.mbsd"
+##
+## These files have the following md5sums:
+##
+## 43b91e8ca915626ed3818ffb1b71248b COPYING.gplv3
+## 06a1a2e4760c90ea5e1dad8dfaac4d39 COPYING.lgplv3
+## 66a5cedaf62c4b2637025f049f9b826f COPYING.mbsd
+
+sed \
+ -e 's;\\fB\([^\\]*\)\\fP;@var{\1};' \
+ -e 's;\\fI\([^\\]*\)\\fP;@i{\1};'