*** empty log message ***
[m17n/m17n-docs.git] / utils / exmim.sh
1 #!/bin/sh
2
3 cat <<EOF
4 /***en @page m17nExMim Example Input Methods
5
6 This section describes these example input methods.  They are to
7 demonstrate the usage of the m17n library, not for practical use.
8
9 <ul>
10 EOF
11
12 cat $* | grep '@page' | sed -e 's/;; @page \([^.]*\).mim/<li> @ref \1 "\1.mim" --/'
13
14 cat <<EOF
15 </ul>
16 */
17 EOF
18
19 cat $* | \
20 sed -n -e '/;; \/\*\*\*/,/;; \*\// p' | \
21 sed -e 's/;; *//' \
22     -e 's/@section/@subsection/' \
23     -e 's/@page \([^.]*\).mim/@section \1 \1.mim --/'