*** empty log message ***
[m17n/m17n-docs.git] / utils / dbtutorial.sh
1 #!/bin/sh
2
3 cat <<EOF
4 /* -*- coding: utf-8; -*- */
5 /*** @page m17nDBTutorial Tutorial for writing the m17n database
6
7 This section contains tutorials for writing various database files of
8 the m17n database.
9
10 <ul>
11 EOF
12
13 for f in $1/*-tut.txt; do
14   cat $f | grep '@page' | sed -e 's/@page mdb\([^ ]*\)/<li> @ref mdb\1 "\1" --/'
15 done
16
17 cat <<EOF
18 </ul>
19 */
20 EOF
21
22 for f in $1/*-tut.txt; do
23   sed -n -e '/\/\*\*\*/,/\*\// p' < $f| \
24   sed -e 's/@section/@subsection/' -e 's/@page/@section/'
25 done
26
27 # Local Variables:
28 # coding: euc-jp
29 # End: