b45a61d141e54a0adb63d12e949fa4aeca793bd0
[m17n/m17n-docs.git] / utils / exprog.sh
1 #!/bin/sh
2
3 cat <<EOF
4 /***en @page m17nExProg Sample Programs */
5 /***ja @page m17nExProg ¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à */
6 /***
7 This section describes these example programs.  They are to demonstrate
8 the usage of the m17n library, not for practical use.
9
10 <ul>
11 EOF
12
13 cat $* | grep '@page' | sed -e 's/@page \([^ ]*\)/<li> @ref \1 "\1" --/'
14
15 cat <<EOF
16 </ul>
17 */
18 EOF
19
20 cat $* | \
21 sed -n -e '/\/\*\*\*/,/\*\// p' | \
22 sed -e 's/@section/@subsection/' \
23     -e 's/@page \([^ ]*\)/@section \1 \1 --/'
24
25 # Local Variables:
26 # coding: euc-jp
27 # End: