aba6d705c600d5344185ba38e48495a7a0ab4082
[m17n/m17n-docs.git] / utils / exprog.sh
1 #!/bin/sh
2
3 cat <<EOF
4 /***en @page m17nExProg Sample Programs
5
6 This section describes these example programs.  They are to demonstrate
7 the usage of the m17n library, not for practical use.
8
9 <ul>
10 EOF
11
12 cat $* | grep '@enpage' | sed -e 's/@enpage \([^ ]*\)/<li> @ref \1 "\1" --/'
13
14 cat <<EOF
15 </ul>
16 */
17 EOF
18
19 cat <<EOF
20 /***ja @page m17nExProg ¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à
21
22 ¤³¤Î¥»¥¯¥·¥ç¥ó¤Ï°Ê²¼¤Î¥×¥í¥°¥é¥à¤Ë¤Ä¤¤¤Æ²òÀ⤹¤ë¡£¤³¤ì¤é¤Î¥×¥í¥°¥é¥à¤Ï
23 m17n ¥é¥¤¥Ö¥é¥ê¤Î»ÈÍÑË¡¤ò¼¨¤¹¤¿¤á¤Î¤â¤Î¤Ç¤¢¤ê¡¢¼ÂºÝ¤Î»ÈÍѤˤϤ¢¤Þ¤êŬ¤µ
24 ¤Ê¤¤¡£
25
26 <ul>
27 EOF
28
29 cat $* | grep '@japage' | sed -e 's/@japage \([^ ]*\)/<li> @ref \1 "\1" --/'
30
31 cat <<EOF
32 </ul>
33 */
34 EOF
35
36 cat $* | \
37 sed -n -e '/\/\*\*\*/,/\*\// p' | \
38 sed -e 's/@section/@subsection/' \
39     -e 's/@..page \([^ ]*\)/@section \1 \1 --/'
40
41 # Local Variables:
42 # coding: euc-jp
43 # End: